From f128d3a035953eaeaaa82893e30963433d7c2130 Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Tue, 1 May 2018 23:22:19 -0400 Subject: [PATCH] if block ends with a return statement drop this else and outdent its block --- session/command_handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/session/command_handler.go b/session/command_handler.go index e7efad17..677238d4 100644 --- a/session/command_handler.go +++ b/session/command_handler.go @@ -27,7 +27,6 @@ func (h *CommandHandler) Parse(line string) (bool, []string) { result := h.Parser.FindStringSubmatch(line) if len(result) == h.Parser.NumSubexp()+1 { return true, result[1:] - } else { - return false, nil } + return false, nil }