Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Oct 1, 2024
1 parent df3848a commit a900b35
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ linters:
- depguard
- gomnd
- execinquery
- exportloopref # deprecated

issues:
exclude-rules:
Expand Down
4 changes: 3 additions & 1 deletion controller/get_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ func (ctrl *Controller) processFileToDownload( //nolint: funlen
if !opts.IsEmpty() {
defer body.Close()

body, contentLength, etag, apiErr = ctrl.manipulateImage(body, uint64(contentLength), opts)
body, contentLength, etag, apiErr = ctrl.manipulateImage(
body, uint64(contentLength), opts, //nolint:gosec
)
if apiErr != nil {
return nil, apiErr
}
Expand Down
2 changes: 1 addition & 1 deletion controller/get_file_information.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (ctrl *Controller) getFileInformationProcess(ctx *gin.Context) (*FileRespon

var object io.ReadCloser
object, fileMetadata.Size, fileMetadata.ETag, apiErr = ctrl.manipulateImage(
download.Body, uint64(fileMetadata.Size), opts,
download.Body, uint64(fileMetadata.Size), opts, //nolint:gosec
)
if apiErr != nil {
return nil, apiErr
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/nhost/hasura-storage

go 1.22.5

toolchain go1.23.1
go 1.23.1

require (
github.com/Yamashou/gqlgenc v0.25.2
Expand Down

0 comments on commit a900b35

Please sign in to comment.