Skip to content

Commit

Permalink
chore: ignore linting issues on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
damianopetrungaro committed May 13, 2022
1 parent 832bcc1 commit 9fbadb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions golog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func TestFatal(t *testing.T) {
}
}()
defer func() {
// nolint:staticcheck
if r := recover(); r != nil {
}
}()
Expand All @@ -120,6 +121,7 @@ func TestCheckFatal(t *testing.T) {
}
}()
defer func() {
// nolint:staticcheck
if r := recover(); r != nil {
}
}()
Expand Down
1 change: 1 addition & 0 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestStdCheckedLogger_Log(t *testing.T) {
EntryMatcher(t, w.Entry, e.With(flds...))
}()
defer func() {
// nolint:staticcheck
if r := recover(); r != nil {
}
}()
Expand Down
1 change: 1 addition & 0 deletions stdlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func TestStdLogger(t *testing.T) {
EntryMatcher(t, test.wantEntry, w.Entry)
}()
defer func() {
// nolint:staticcheck
if r := recover(); r != nil {
}
}()
Expand Down

0 comments on commit 9fbadb7

Please sign in to comment.