From 38caa12762e776c4637ad9697805c2e9a2e3dbb4 Mon Sep 17 00:00:00 2001 From: Roman Suvorov Date: Thu, 22 Oct 2020 09:40:20 +0300 Subject: [PATCH] Feature/gofumpt (#1545) * enable gofumpt * remove nlreturn * up golang-ci --- .golangci.yml | 2 +- .travis.yml | 2 +- ring.go | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2132eee9..1e8d238c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,5 +17,5 @@ linters: - gomnd - goerr113 - exhaustive - - gofumpt - nestif + - nlreturn diff --git a/.travis.yml b/.travis.yml index adedd8df..1bf578d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,4 +17,4 @@ go_import_path: github.com/go-redis/redis before_install: - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- - -b $(go env GOPATH)/bin v1.28.3 + -b $(go env GOPATH)/bin v1.31.0 diff --git a/ring.go b/ring.go index 205b0249..34d05f35 100644 --- a/ring.go +++ b/ring.go @@ -13,7 +13,6 @@ import ( "github.com/cespare/xxhash/v2" "github.com/dgryski/go-rendezvous" - "github.com/go-redis/redis/v8/internal" "github.com/go-redis/redis/v8/internal/hashtag" "github.com/go-redis/redis/v8/internal/pool"