fix handling of empty admin command lines

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-23 04:33:50 +00:00 committed by strawberry
parent 7a71012589
commit d875e0c1c0
2 changed files with 10 additions and 7 deletions

View file

@ -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;
}