fix handling of empty admin command lines

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-06-23 09:52:16 -04:00
1 parent 7a71012589
commit d875e0c1c0
2 files changed
+10 -7

No files matched your search

+1 -1
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;
}