Skip to content

Commit 32a6393

Browse files
committed
Add back defer
1 parent e2fe6a3 commit 32a6393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fix_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestFix(t *testing.T) {
3131
os.RemoveAll(tmpDir)
3232
})
3333
} else {
34-
os.RemoveAll(tmpDir)
34+
defer os.RemoveAll(tmpDir)
3535
}
3636

3737
fixDir := filepath.Join(testdataDir, "fix")

0 commit comments

Comments
 (0)