diff options
author | Alexey Yerin <yyp@disroot.org> | 2021-05-21 20:52:44 +0300 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-05-25 12:39:24 +0200 |
commit | f07a0af5fa2ac11c80c8d67640e0b31518cc310e (patch) | |
tree | e16bf1f5fab92252c0a0f6b495a193ed4d73dd9a /commands.go | |
parent | doc/senpai.5: update docs for addr field (diff) |
commands: do not handle s == ""
handleInput already checks for this.
Diffstat (limited to 'commands.go')
-rw-r--r-- | commands.go | 4 |
1 files changed, 0 insertions, 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 } |