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:
committed by
Quentin Le Sceller
parent
c15aedf190
commit
4449c91c04
@@ -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"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user