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:
parent
a25dedfa53
commit
8026fb003c
@ -265,9 +265,8 @@ func globalReferrers(q *Query, qpkg, defpkg string, objposn token.Position) erro
|
|||||||
// to completion.
|
// to completion.
|
||||||
|
|
||||||
var (
|
var (
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
qobj types.Object
|
qobj types.Object
|
||||||
qinfo *loader.PackageInfo // info for qpkg
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// For efficiency, we scan each package for references
|
// 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",
|
log.Fatalf("object at %s not found in package %s",
|
||||||
objposn, defpkg)
|
objposn, defpkg)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Object found.
|
|
||||||
qinfo = info
|
|
||||||
}
|
}
|
||||||
obj := qobj
|
obj := qobj
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user