Skip to content

Commit

Permalink
Removed redundant error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Lindahl committed Apr 11, 2024
1 parent e38c6ae commit f713285
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ func TestIsAsError(t *testing.T) {
}
for i, tc := range tcs {
t.Run(fmt.Sprintf("Test case %d", i), func(t *testing.T) {
var e2 Error
if !errors.As(tc.err, &e2) {
t.Error("expected error to be of a wrapped type of Error")
}
if tc.err.Error() != tc.expected {
t.Errorf("expected err.Error() to be '%s' but was '%s'", tc.expected, tc.err.Error())
}
Expand Down

0 comments on commit f713285

Please sign in to comment.