Fix return code in peers API (#3186)

Rust compiler found this issue, we were preparing a response and the dropping it and returning a default one
This commit is contained in:
hashmap 2020-01-21 17:30:29 +01:00 committed by Quentin Le Sceller
parent c15aedf190
commit 4449c91c04

View file

@ -157,9 +157,7 @@ impl Handler for PeerHandler {
format!("unban failed: {:?}", e), format!("unban failed: {:?}", e),
), ),
}, },
_ => return response(StatusCode::BAD_REQUEST, "invalid command"), _ => response(StatusCode::BAD_REQUEST, "invalid command"),
}; }
response(StatusCode::OK, "{}")
} }
} }