From dbfe115d29ea9f6821150c7258afc4d3f718c18d Mon Sep 17 00:00:00 2001 From: sivchari Date: Wed, 2 Oct 2024 11:42:42 +0900 Subject: [PATCH] fix: gofmt Signed-off-by: sivchari --- tools/setup-envtest/store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/setup-envtest/store/store.go b/tools/setup-envtest/store/store.go index e86f0b3f23..5405e66477 100644 --- a/tools/setup-envtest/store/store.go +++ b/tools/setup-envtest/store/store.go @@ -167,7 +167,7 @@ func (s *Store) Add(ctx context.Context, item Item, contents io.Reader) (resErr // preferfing our own scheme. targetPath := filepath.Base(header.Name) log.V(1).Info("writing archive file to disk", "archive file", header.Name, "on-disk file", targetPath) - perms := 0555 & header.Mode // make sure we're at most r+x + perms := 0555 & header.Mode // make sure we're at most r+x binOut, err := itemPath.OpenFile(targetPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, os.FileMode(perms)) //nolint:gosec // We don't care about G115. if err != nil { return fmt.Errorf("unable to create file %s from archive to disk for version-platform pair %s", targetPath, itemName)