mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Address review comment
This commit is contained in:
@@ -2033,10 +2033,7 @@ private ItemNode resolveUseTreeListItemQualifier(
|
|||||||
|
|
||||||
private UseTree getAUseUseTree(Use use) {
|
private UseTree getAUseUseTree(Use use) {
|
||||||
exists(UseTree root | root = use.getUseTree() |
|
exists(UseTree root | root = use.getUseTree() |
|
||||||
result = root
|
if root.hasPath() then result = root else result = getAUseTreeUseTree(root)
|
||||||
or
|
|
||||||
not root.hasPath() and
|
|
||||||
result = getAUseTreeUseTree(root)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user