Skip to content

Commit 33d5d12

Browse files
committed
fix lint
1 parent 9fb3ee1 commit 33d5d12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tempfile/directory_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ func TestDirectoryReferenceCountingCleanup(t *testing.T) {
7575
if err != nil {
7676
t.Fatalf("Failed to create test base dir: %v", err)
7777
}
78-
defer os.RemoveAll(baseDir)
78+
defer func() {
79+
err := os.RemoveAll(baseDir)
80+
if err != nil {
81+
t.Fatal(err)
82+
}
83+
}()
7984

8085
// Create a subdirectory that matches our process-specific pattern
8186
// This simulates what would happen in the fallback case

0 commit comments

Comments
 (0)