Remove unnecessary code

Remove unnecessary if and return the value directly
This commit is contained in:
Nykolas Laurentino de Lima 2017-04-27 14:24:25 -03:00 committed by GitHub
parent d0dd05b659
commit bd29077241
1 changed files with 1 additions and 4 deletions

View File

@ -111,10 +111,7 @@ type baseCmd struct {
}
func (cmd *baseCmd) Err() error {
if cmd.err != nil {
return cmd.err
}
return nil
return cmd.err
}
func (cmd *baseCmd) args() []interface{} {