diff --git a/.golangci.yml b/.golangci.yml index df94ddce..912dab1e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,11 @@ run: linters: enable-all: true disable: + - funlen - gochecknoglobals + - gocognit - goconst + - godox - gosec - maligned + - wsl diff --git a/.travis.yml b/.travis.yml index a06ac2c3..b9e0af34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,4 +20,4 @@ env: go_import_path: github.com/go-redis/redis before_install: - - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 + - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0 diff --git a/command.go b/command.go index 16e087e1..7ff4695a 100644 --- a/command.go +++ b/command.go @@ -1863,7 +1863,6 @@ func (cmd *GeoPosCmd) readReply(rd *proto.Reader) error { return nil, nil }) return cmd.err - } //------------------------------------------------------------------------------