From ea1477608dc2669ff085c18ed30750701addccd5 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 23 Oct 2014 09:57:19 -0700 Subject: [PATCH] cmd/vet: use changed types.LookupParent API (fix build) LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/162080043 --- cmd/vet/shadow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }