if block ends with a return statement drop this else and outdent its block

This commit is contained in:
Kent Gruber 2018-05-01 23:06:11 -04:00
commit ea43018146

View file

@ -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) {