Skip to content

Commit 5adf6f3

Browse files
Fix lint
1 parent e77bc65 commit 5adf6f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/zap/zap_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func run(options zap.RunOptions) func() {
200200
err := app.Run(context.Background(), options)
201201
if err != nil {
202202
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
203-
os.Exit(1) //nolint:revive // redundant-test-main-exit, this is testscript main
203+
os.Exit(1) //nolint:revive // Needed for testscript
204204
}
205205
}
206206
}
@@ -213,7 +213,7 @@ func export(options zap.ExportOptions) func() {
213213
err := app.Export(context.Background(), options)
214214
if err != nil {
215215
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
216-
os.Exit(1) //nolint:revive // redundant-test-main-exit, this is testscript main
216+
os.Exit(1) //nolint:revive // Needed for testscript
217217
}
218218
}
219219
}

0 commit comments

Comments
 (0)