Skip to content

Commit 610f49e

Browse files
committed
Use string concatenation to construct error
1 parent 9464bf5 commit 610f49e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/lint/runner.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,7 @@ func (r Runner) Run(ctx context.Context, linters []*linter.Config, lintCtx *lint
213213
}
214214

215215
if len(failedLinters) > 0 {
216-
linterErr = fmt.Errorf(
217-
"one or more linters failed to run: %s",
218-
strings.Join(failedLinters, ", "),
219-
)
216+
linterErr = errors.New("one or more linters failed to run: " + strings.Join(failedLinters, ", "))
220217
}
221218

222219
return r.processLintResults(issues), linterErr

0 commit comments

Comments
 (0)