Skip to content

Commit

Permalink
fix: gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: sivchari <[email protected]>
  • Loading branch information
sivchari committed Oct 2, 2024
1 parent 7f25ece commit dbfe115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/setup-envtest/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbfe115

Please sign in to comment.