From 5c3e647618850ab3b00c7434fc185906ba219af8 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Thu, 3 Nov 2016 09:20:38 -0400 Subject: [PATCH] Add gofmt to metalinter. Fix one issue it caught. This depends on PR#97 --- goclean.sh | 2 +- infrastructure.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/goclean.sh b/goclean.sh index 91ae7d795..0e779e609 100755 --- a/goclean.sh +++ b/goclean.sh @@ -12,8 +12,8 @@ set -e # Automatic checks -test -z "$(gofmt -l -w . | tee /dev/stderr)" test -z "$(gometalinter --disable-all \ +--enable=gofmt \ --enable=golint \ --enable=vet \ --enable=goimports \ diff --git a/infrastructure.go b/infrastructure.go index 66ca79d6c..8f6e2423c 100644 --- a/infrastructure.go +++ b/infrastructure.go @@ -555,7 +555,7 @@ func (c *Client) reregisterNtfns() error { // ignoreResends is a set of all methods for requests that are "long running" // are not be reissued by the client on reconnect. var ignoreResends = map[string]struct{}{ - "rescan": struct{}{}, + "rescan": {}, } // resendRequests resends any requests that had not completed when the client