Skip to content

Commit

Permalink
Merge pull request #2 from hirose31/gosec
Browse files Browse the repository at this point in the history
Ignore gosec G307
  • Loading branch information
hirose31 authored Oct 26, 2021
2 parents e7033aa + 9a228e8 commit da37002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $(GOBIN)/golint:
@cd && go get golang.org/x/lint/golint

$(GOBIN)/gosec:
@cd && go get github.com/securego/gosec/v2/cmd/gosec@v2.8.1
@cd && go get github.com/securego/gosec/v2/cmd/gosec

.PHONY: cross
cross: $(GOBIN)/goxz ## build for cross platforms
Expand Down
1 change: 1 addition & 0 deletions pkg/m/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ func (s3m S3Model) Download(object s3types.Object) (n int64, err error) {
if err != nil {
return 0, err
}
/* #nosec G307 */
defer func() {
if err := fp.Close(); err != nil {
panic(err)
Expand Down

0 comments on commit da37002

Please sign in to comment.