Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testutils: fix testify usage (report by testifylint) #1424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dolmen
Copy link
Contributor

@dolmen dolmen commented Mar 12, 2024

Use require.NoError(t, err) instead of require.Nil(t, err) as suggested by testifylint.

$ golangci-lint version
golangci-lint has version 1.56.2 built with go1.22.0 from 58a724a on 2024-02-15T12:52:06Z
$ golangci-lint run ./internal/testutils
internal/testutils/testutils.go:26:2: error-nil: use require.NoError (testifylint)
	require.Nil(t, err)
	^

Use require.NoError(t, err) instead of require.Nil(t, err).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant