Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunh0w committed May 2, 2024
1 parent f3ece52 commit 0c959bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}
Expand Down

0 comments on commit 0c959bb

Please sign in to comment.