From f07a0af5fa2ac11c80c8d67640e0b31518cc310e Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Fri, 21 May 2021 20:52:44 +0300 Subject: commands: do not handle s == "" handleInput already checks for this. --- commands.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/commands.go b/commands.go index da312ca..797878e 100644 --- a/commands.go +++ b/commands.go @@ -412,10 +412,6 @@ func fieldsN(s string, n int) []string { } func parseCommand(s string) (command, args string, isCommand bool) { - if s == "" { - return "", "", false - } - if s[0] != '/' { return "", s, false } -- cgit v1.2.3