Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kunicki committed Feb 20, 2018
1 parent f336e8c commit 0a3085d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions cmd/brew.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ var brewCmd = &cobra.Command{
Long: ``,
Run: brew,
Args: func(cmd *cobra.Command, args []string) error {
if err := cli.RequiresMaxArgs(1)(cmd, args); err != nil {
return err
}
return nil
return cli.RequiresMaxArgs(1)(cmd, args)
},
}

Expand Down
5 changes: 1 addition & 4 deletions cmd/taste.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ var tasteCmd = &cobra.Command{
Long: ``,
Run: taste,
Args: func(cmd *cobra.Command, args []string) error {
if err := cli.ExactArgs(0)(cmd, args); err != nil {
return err
}
return nil
return cli.ExactArgs(0)(cmd, args)
},
}

Expand Down

0 comments on commit 0a3085d

Please sign in to comment.