diff --git a/cmd/vet/shadow.go b/cmd/vet/shadow.go index c2cb217a..932ba621 100644 --- a/cmd/vet/shadow.go +++ b/cmd/vet/shadow.go @@ -213,7 +213,7 @@ func checkShadowing(f *File, ident *ast.Ident) { } // obj.Parent.Parent is the surrounding scope. If we can find another declaration // starting from there, we have a shadowed variable. - shadowed := obj.Parent().Parent().LookupParent(obj.Name()) + _, shadowed := obj.Parent().Parent().LookupParent(obj.Name()) if shadowed == nil { return }