Skip to content

Commit

Permalink
Adopt the linter suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Nov 19, 2022
1 parent a4557df commit c6e2e7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestDecode(t *testing.T) {
return
}

if tc.expectedErr == unknown {
if errors.Is(unknown, tc.expectedErr) {
assert.Error(err)
return
}
Expand Down Expand Up @@ -220,7 +220,7 @@ func TestEndToEnd(t *testing.T) {
return
}

if tc.expectedErr == unknown {
if errors.Is(unknown, tc.expectedErr) {
assert.Error(err)
return
}
Expand Down

0 comments on commit c6e2e7a

Please sign in to comment.