diff --git a/cli/main_test.go b/cli/main_test.go index a8a6c9f7d..76638e205 100644 --- a/cli/main_test.go +++ b/cli/main_test.go @@ -44,6 +44,7 @@ var contextSetConfig = []byte(`{ func TestDetermineCurrentContext(t *testing.T) { d, err := ioutil.TempDir("", "") + // nolint errcheck defer os.RemoveAll(d) require.NoError(t, err) err = ioutil.WriteFile(filepath.Join(d, config.ConfigFileName), contextSetConfig, 0644)