From 97f1935994edc37cc778b2476c6224a06c22a719 Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Thu, 21 Feb 2019 17:23:15 +1100 Subject: [PATCH] Upgraed go-lint tooling. --- build/build-image/Dockerfile | 2 +- pkg/gameserversets/gameserver_state_cache.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index fa6a7e46f6..403c5b0e70 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -104,7 +104,7 @@ RUN go get -u github.com/golang/dep/cmd/dep && \ go get -u golang.org/x/tools/cmd/goimports # install golang-ci linter -RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.12.2 +RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.15.0 # install the release branch of the code generator tools RUN mkdir -p /go/src && cd /go/src && mkdir -p k8s.io && cd k8s.io && \ diff --git a/pkg/gameserversets/gameserver_state_cache.go b/pkg/gameserversets/gameserver_state_cache.go index d4e9e7c189..4a93305dae 100644 --- a/pkg/gameserversets/gameserver_state_cache.go +++ b/pkg/gameserversets/gameserver_state_cache.go @@ -32,9 +32,7 @@ func (e *gameServerSetCacheEntry) deleted(gs *v1alpha1.GameServer) { } // Was pending creation, but deleted already. - if _, ok := e.pendingCreation[gs.Name]; ok { - delete(e.pendingCreation, gs.Name) - } + delete(e.pendingCreation, gs.Name) gsClone := gs.DeepCopy() t := metav1.Now()