From c531e3dfd478604a132727e3f5779bf5249f3d1b Mon Sep 17 00:00:00 2001 From: MrExplode Date: Fri, 3 Nov 2023 15:37:56 +0100 Subject: [PATCH] fix: syntax errors thank you rust-analyzer very cool --- src/jira.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jira.rs b/src/jira.rs index c2092e6..e1cba3b 100644 --- a/src/jira.rs +++ b/src/jira.rs @@ -40,8 +40,8 @@ async fn handle(info: web::Query, body: String, clients: Data return HttpResponse::Unauthorized().finish(); } - if &body.contains("issue_property_set") { - HttpResponse::Accepted().finish() + if body.contains("issue_property_set") { + return HttpResponse::Accepted().finish(); } if env::var("LOG_REQUESTS").unwrap_or("".to_string()) != "" {