fix handling of empty admin command lines
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7a71012589
commit
d875e0c1c0
2 changed files with 10 additions and 7 deletions
|
@ -138,7 +138,7 @@ impl Console {
|
|||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
async fn handle(self: Arc<Self>, line: String) {
|
||||
if line.is_empty() {
|
||||
if line.trim().is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue