Skip to content

Commit 100048b

Browse files
committed
ci: ignore GO-W1032 - intentional and temporary Setenv
1 parent 642bb9f commit 100048b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestMain(m *testing.M) {
2323
}
2424

2525
origHome := os.Getenv("HOME")
26-
_ = os.Setenv("HOME", dir)
26+
_ = os.Setenv("HOME", dir) // skipcq: GO-W1032
2727

2828
// Override spinnerFunc with a mock to prevent data races from async goroutines
2929
spinnerFunc = func(_ string) (spinner, error) {
@@ -37,7 +37,7 @@ func TestMain(m *testing.M) {
3737

3838
code := m.Run()
3939

40-
_ = os.Setenv("HOME", origHome)
40+
_ = os.Setenv("HOME", origHome) // skipcq: GO-W1032
4141

4242
if err := os.RemoveAll(dir); err != nil {
4343
os.Exit(1)

0 commit comments

Comments
 (0)