refactor: simplify some controls

This commit is contained in:
Andrey Nering
2017-07-08 15:08:44 -03:00
parent 6e880c9027
commit 0da130ee2c
3 changed files with 9 additions and 24 deletions

View File

@@ -46,8 +46,5 @@ func RunCommand(opts *RunCommandOptions) error {
Stdout: opts.Stdout,
Stderr: opts.Stderr,
}
if err = r.Run(); err != nil {
return err
}
return nil
return r.Run()
}