1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:44:41 -07:00

cmd/guru: fix vet error in referrers.go

Fixes golang/go#25227

Change-Id: If121154f95681367874332dac30bfe69d1755182
Reviewed-on: https://go-review.googlesource.com/111035
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Andrew Bonventre 2018-05-02 16:56:06 -04:00 committed by Andrew Bonventre
parent a25dedfa53
commit 8026fb003c

View File

@ -267,7 +267,6 @@ func globalReferrers(q *Query, qpkg, defpkg string, objposn token.Position) erro
var (
mu sync.Mutex
qobj types.Object
qinfo *loader.PackageInfo // info for qpkg
)
// For efficiency, we scan each package for references
@ -291,9 +290,6 @@ func globalReferrers(q *Query, qpkg, defpkg string, objposn token.Position) erro
log.Fatalf("object at %s not found in package %s",
objposn, defpkg)
}
// Object found.
qinfo = info
}
obj := qobj
mu.Unlock()