diff --git a/pkg/lint/recipe.go b/pkg/lint/recipe.go index d7b6cb36c..1855b6e2f 100644 --- a/pkg/lint/recipe.go +++ b/pkg/lint/recipe.go @@ -206,8 +206,8 @@ func LintForErrors(recipe recipe.Recipe) error { } } - if (len(errors) > 0) { - return fmt.Errorf("recipe '%s' failed lint checks:\n" + errors[1:], recipe.Name) + if len(errors) > 0 { + return fmt.Errorf("recipe '%s' failed lint checks:\n"+errors[1:], recipe.Name) } log.Debugf("linting successful, %s is well configured", recipe.Name)