diff --git a/src/api/src/service.rs b/src/api/src/service.rs index 5581d4a..243c287 100644 --- a/src/api/src/service.rs +++ b/src/api/src/service.rs @@ -78,11 +78,11 @@ pub async fn shutdown(request: HttpRequest) -> impl Responder { match response_result { Ok(response) => { let json_response: ShutdownJsonResponse = response.into(); - return HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()); + HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()) } Err(_) => { let json_response: ShutdownJsonResponse = ShutdownJsonResponse { success: false }; - return HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()); + HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()) } } }