Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
  • Loading branch information
Per Goncalves da Silva committed Jul 11, 2024
1 parent 014a55a commit d785815
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ verify: tidy fmt vet generate manifests #HELP Verify all generated code is up-to
.PHONY: fmt
fmt: #EXHELP Run go fmt against code.
go fmt ./...

.PHONY: fix-fmt
fix-fmt: $(GOLANGCI_LINT) #EXHELP Runs golangci-lint with --fix flag to fix linting issues.
$(GOLANGCI_LINT) run --fix $(GOLANGCI_LINT_ARGS)

.PHONY: vet
Expand Down
2 changes: 1 addition & 1 deletion internal/catalogmetadata/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (fsc *filesystemCache) FetchCatalogContents(ctx context.Context, catalog *c
if err := os.MkdirAll(filepath.Dir(metaPath), os.ModePerm); err != nil {
return fmt.Errorf("error creating directory for catalog metadata: %v", err)
}
if err := os.WriteFile(metaPath, meta.Blob, os.ModePerm); err != nil {
if err := os.WriteFile(metaPath, meta.Blob, 0600); err != nil {
return fmt.Errorf("error writing catalog metadata to file: %v", err)
}
return nil
Expand Down

0 comments on commit d785815

Please sign in to comment.