Skip to content

Commit 8ef4f86

Browse files
Copilotcschleiden
authored andcommitted
Fix testifylint: use require.NoError instead of require.Nil for error check
1 parent 3d0ae89 commit 8ef4f86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workflow/context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestCause(t *testing.T) {
1212
myErr := errors.New("my cause")
1313

1414
ctx, cancel := WithCancelCause(sync.Background())
15-
require.Nil(t, Cause(ctx))
15+
require.NoError(t, Cause(ctx))
1616

1717
cancel(myErr)
1818

0 commit comments

Comments
 (0)