From 6fab04f4e134d42307acc214ffafa01b01f3ad78 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Fri, 28 Jul 2017 18:49:58 +0000 Subject: [PATCH] fix vet shadow report --- go/cmd/pserver/pserver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/cmd/pserver/pserver.go b/go/cmd/pserver/pserver.go index 2b63fd7f3e..f9cd8f87e8 100644 --- a/go/cmd/pserver/pserver.go +++ b/go/cmd/pserver/pserver.go @@ -72,9 +72,9 @@ func main() { shutdown := func() { log.Infoln("shutting down gracefully") - err := e.Shutdown() - if err != nil { - log.Errorln(err) + sErr := e.Shutdown() + if sErr != nil { + log.Errorln(sErr) } } -- GitLab