Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/ast/inspector: treat empty type filter like nil
The documentation for type filtering speaks only of the length of the slice, but the logic checks for nil. Fix the logic to match the documentation. (This is an observable change but there is never any reason to pass []ast.Node{}... as a type filter.) Change-Id: Ifa8f72c0c2ff5a4c0fc2ee39e65641503a93c471 Reviewed-on: https://go-review.googlesource.com/c/tools/+/641436 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Alan Donovan <[email protected]>
- Loading branch information