From ea4301814679c008abd6da3fe63824e627706e18 Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Tue, 1 May 2018 23:06:11 -0400 Subject: [PATCH] if block ends with a return statement drop this else and outdent its block --- core/core.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/core.go b/core/core.go index d013d270..072ae821 100644 --- a/core/core.go +++ b/core/core.go @@ -66,9 +66,8 @@ func ExecSilent(executable string, args []string) (string, error) { raw, err := exec.Command(path, args...).CombinedOutput() if err != nil { return "", err - } else { - return Trim(string(raw)), nil } + return Trim(string(raw)), nil } func Exec(executable string, args []string) (string, error) {