Skip to content

Commit

Permalink
Use string concatenation to construct error
Browse files Browse the repository at this point in the history
  • Loading branch information
bombsimon committed Jan 10, 2022
1 parent 9464bf5 commit d3ded76
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/lint/runner.go
Expand Up @@ -213,10 +213,7 @@ func (r Runner) Run(ctx context.Context, linters []*linter.Config, lintCtx *lint
}

if len(failedLinters) > 0 {
linterErr = fmt.Errorf(
"one or more linters failed to run: %s",
strings.Join(failedLinters, ", "),
)
linterErr = errors.New("one or more linters failed to run: %s" + strings.Join(failedLinters, ", "))
}

return r.processLintResults(issues), linterErr
Expand Down

0 comments on commit d3ded76

Please sign in to comment.