Skip to content

Commit 1baf26b

Browse files
committed
fix: use errors.New and add whitespace for linter compliance
Replace fmt.Errorf with errors.New (no format verbs) and add blank line above ctx assignment per wsl_v5 linter. Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
1 parent 4a729c2 commit 1baf26b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/lint.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ func init() {
172172

173173
func lint(args []string, params *lintParams) (result report.Report, err error) {
174174
if params.profile && params.format != formatJSON {
175-
return report.Report{}, fmt.Errorf("--profile requires --format json to display profiling data")
175+
return report.Report{}, errors.New("--profile requires --format json to display profiling data")
176176
}
177+
177178
ctx, cancel := getLinterContext(params.lintAndFixParams)
178179
defer cancel()
179180

0 commit comments

Comments
 (0)