From b403828de20dbd355ce5b328e2bd0998e628c32d Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Mon, 18 Nov 2019 18:46:09 +0100 Subject: [PATCH] Bump golangci-lint to v1.21.0 --- .golangci.yml | 4 ++++ .travis.yml | 2 +- command.go | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) 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 - } //------------------------------------------------------------------------------