diff --git a/cmd/brew.go b/cmd/brew.go index ed885c7..aa6bc3d 100644 --- a/cmd/brew.go +++ b/cmd/brew.go @@ -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) }, } diff --git a/cmd/taste.go b/cmd/taste.go index fb6ef27..b4b8560 100644 --- a/cmd/taste.go +++ b/cmd/taste.go @@ -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) }, }