From c6f925db9635ae394b75058ed8b61baa9874905f Mon Sep 17 00:00:00 2001 From: Alberto Carretero Date: Fri, 30 Aug 2024 16:36:52 +0200 Subject: [PATCH] lint --- internal/slicer/slicer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/slicer/slicer_test.go b/internal/slicer/slicer_test.go index 3d9ffdf1..4d31fc5b 100644 --- a/internal/slicer/slicer_test.go +++ b/internal/slicer/slicer_test.go @@ -1277,11 +1277,11 @@ func runSlicerTests(c *C, tests []slicerTest) { c.Assert(err, IsNil) c.Assert(s.Mode(), Equals, slicer.ManifestMode) f, err := os.Open(path.Join(options.TargetDir, manifestPath)) - defer f.Close() c.Assert(err, IsNil) + defer f.Close() r, err := zstd.NewReader(f) - defer r.Close() c.Assert(err, IsNil) + defer r.Close() mfest, err := manifest.Read(r) c.Assert(err, IsNil) err = manifest.Validate(mfest)