Skip to content

Commit

Permalink
chore: fix golang ci lint error
Browse files Browse the repository at this point in the history
Signed-off-by: yuxing.lyx <[email protected]>
  • Loading branch information
starnop committed Oct 25, 2023
1 parent f9bf927 commit 8804e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ linters:
enable:
- gofmt
- goimports
- golint
- revive
- stylecheck
- goconst
- gosimple
Expand All @@ -34,23 +34,22 @@ linters:
- ineffassign
- vet
- typecheck
- deadcode
- errcheck
- govet
- staticcheck
- structcheck
- unused
- varcheck
- nilerr
- unparam
- ifshort
- unconvert

issues:
exclude-rules:
- linters:
- golint
text: "AccessKeyId"
- linters:
- typecheck
text: "has no field or method"

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
Expand Down
2 changes: 1 addition & 1 deletion utils/archive/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func Decompress(src io.Reader, dst string, options Options) (int64, error) {
}

var (
size int64 = 0
size int64
dirs []*tar.Header
tr = tar.NewReader(reader)
)
Expand Down

0 comments on commit 8804e6e

Please sign in to comment.