From 8ef497b65213b43164bcb9437d0c5bdd986cd52c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 31 Jul 2018 20:38:33 +0200 Subject: gometalinter: clean up vetshadow This just cleans up existing warnings. vetshadow is not enabled yet because it crashes. Update #538 --- pkg/compiler/consts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/compiler') 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 -- cgit mrf-deployment