Skip to content

Commit d992f3e

Browse files
committed
fix: handle Unsetenv error return in test cleanup
1 parent d8dcd20 commit d992f3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/slackdeps/os_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func Test_Os_Setenv(t *testing.T) {
224224
err := o.Setenv(tc.key, tc.value)
225225
require.NoError(t, err)
226226
require.Equal(t, tc.expected, o.Getenv(tc.key))
227-
t.Cleanup(func() { o.Unsetenv(tc.key) })
227+
t.Cleanup(func() { _ = o.Unsetenv(tc.key) })
228228
})
229229
}
230230
}

0 commit comments

Comments
 (0)