aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-31 20:38:33 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-31 20:38:33 +0200
commit8ef497b65213b43164bcb9437d0c5bdd986cd52c (patch)
tree208ea3781036be15fb3d7a01ee01ee7aaecdbd3a /pkg/compiler
parentba6c552acdce01730ee9d3601702a7614ca1a021 (diff)
gometalinter: clean up vetshadow
This just cleans up existing warnings. vetshadow is not enabled yet because it crashes. Update #538
Diffstat (limited to 'pkg/compiler')
-rw-r--r--pkg/compiler/consts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/compiler/consts.go b/pkg/compiler/consts.go
index 79bf84e70..d3556c047 100644
--- a/pkg/compiler/consts.go
+++ b/pkg/compiler/consts.go
@@ -293,7 +293,7 @@ func DeserializeConsts(data []byte, file string, eh ast.ErrorHandler) map[string
ok = false
continue
}
- if _, ok := consts[name]; ok {
+ if _, dup := consts[name]; dup {
eh(pos, fmt.Sprintf("duplicate const %q", name))
ok = false
continue