diff --git a/api/src/handlers/peers_api.rs b/api/src/handlers/peers_api.rs index d6b324152..9469ef273 100644 --- a/api/src/handlers/peers_api.rs +++ b/api/src/handlers/peers_api.rs @@ -157,9 +157,7 @@ impl Handler for PeerHandler { format!("unban failed: {:?}", e), ), }, - _ => return response(StatusCode::BAD_REQUEST, "invalid command"), - }; - - response(StatusCode::OK, "{}") + _ => response(StatusCode::BAD_REQUEST, "invalid command"), + } } }