aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/decoder_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/idxfile/decoder_test.go')
-rw-r--r--plumbing/format/idxfile/decoder_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/plumbing/format/idxfile/decoder_test.go b/plumbing/format/idxfile/decoder_test.go
index 467e242..94059cc 100644
--- a/plumbing/format/idxfile/decoder_test.go
+++ b/plumbing/format/idxfile/decoder_test.go
@@ -124,11 +124,7 @@ func BenchmarkDecode(b *testing.B) {
b.Errorf("unexpected error reading idx file: %s", err)
}
- defer func() {
- if err := fixtures.Clean(); err != nil {
- b.Errorf("unexpected error cleaning fixtures: %s", err)
- }
- }()
+ defer fixtures.Clean()
for i := 0; i < b.N; i++ {
f := bytes.NewBuffer(fixture)