mirror of
https://github.com/bettercap/bettercap
synced 2025-08-10 16:56:57 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
8193834f0f
commit
ea43018146
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue