mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
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:
parent
c15aedf190
commit
4449c91c04
1 changed files with 2 additions and 4 deletions
|
@ -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"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue