Skip to content

Commit

Permalink
apply fix from pr, add lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
rayjlinden committed Dec 11, 2023
1 parent 785a157 commit 3b6fd0d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .standard-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# DO NOT EDIT
#
# This wil will be auto-updated by checkdeps to match the version in
# extraction-makeworld/configs/checkdeps/standard-lint.yml
#
# If you NEED to have custom lint rules for a paticular repository you can change the name
# of this file make your updates. Then change the lint target in the Makefile to reference your
# custom file.
#
# If we need to update this config to add new linters, get rid of deprecated linters, etc. You can just make
# the change in makeworld and then it will propogate to all repos using this file as developers run
# checkdeps --fix in those repos.

run:
timeout: 5m
linters:
disable-all: true
enable:
- staticcheck
- unused
- gofmt
- goimports
- govet
- errcheck
- gosimple
- ineffassign
- typecheck
- gosec
linters-settings:
goimports:
local-prefixes: github.com/lindenlab
1 change: 1 addition & 0 deletions s3proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ func (p S3Proxy) writeResponseFromGetObject(w http.ResponseWriter, obj *s3.GetOb
if obj.Body != nil {
// io.Copy will set Content-Length
w.Header().Del("Content-Length")
w.WriteHeader(http.StatusOK)
_, err = io.Copy(w, obj.Body)
}

Expand Down

0 comments on commit 3b6fd0d

Please sign in to comment.