From cfc4e019b6bab1a00aa89bf338cebf1447c92836 Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Wed, 15 Jan 2025 01:58:19 -0500 Subject: [PATCH] chore: lint --- pkg/check/manifest/manifest.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/check/manifest/manifest.go b/pkg/check/manifest/manifest.go index bd3ae14f..9f16ff7d 100644 --- a/pkg/check/manifest/manifest.go +++ b/pkg/check/manifest/manifest.go @@ -158,6 +158,9 @@ func (c *Check) checkWithSubDirs(ctx context.Context, rnd *rand.Rand, o Options, } tarReader, err := tarFiles(files) + if err != nil { + return err + } tarFile := bee.NewBufferFile("", tarReader) if err := upClient.UploadCollection(ctx, &tarFile, api.UploadOptions{BatchID: batchID}); err != nil { return err @@ -185,6 +188,9 @@ func (c *Check) checkWithSubDirs(ctx context.Context, rnd *rand.Rand, o Options, } files[0] = tmp[0] tarReader, err = tarFiles(files) + if err != nil { + return err + } tarFile = bee.NewBufferFile("", tarReader) if err := upClient.UploadCollection(ctx, &tarFile, api.UploadOptions{BatchID: batchID, Direct: true}); err != nil { return err