Skip to content

Commit

Permalink
Use require.NoError
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby authored Oct 18, 2024
1 parent dde670f commit 94d08ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Test_returnErr(t *testing.T) {
c := app.AcquireCtx(&fasthttp.RequestCtx{})

err := c.Bind().Must().returnErr(nil)
require.Equal(t, nil, err)
require.NoError(t, nil, err)

Check failure on line 28 in bind_test.go

View workflow job for this annotation

GitHub Actions / lint

error-is-as: invalid usage of require.NoError, use require.NotErrorIs instead (testifylint)
}

// go test -run Test_Bind_Query -v
Expand Down

0 comments on commit 94d08ad

Please sign in to comment.