From c6164b33e5e3afb764d0ff693acfac349cb8691c Mon Sep 17 00:00:00 2001 From: Tom Hvitved Date: Thu, 13 Nov 2025 10:47:04 +0100 Subject: [PATCH] Address review comment --- rust/ql/lib/codeql/rust/internal/PathResolution.qll | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rust/ql/lib/codeql/rust/internal/PathResolution.qll b/rust/ql/lib/codeql/rust/internal/PathResolution.qll index 568ff23aaf1..eebbc2b30f0 100644 --- a/rust/ql/lib/codeql/rust/internal/PathResolution.qll +++ b/rust/ql/lib/codeql/rust/internal/PathResolution.qll @@ -2033,10 +2033,7 @@ private ItemNode resolveUseTreeListItemQualifier( private UseTree getAUseUseTree(Use use) { exists(UseTree root | root = use.getUseTree() | - result = root - or - not root.hasPath() and - result = getAUseTreeUseTree(root) + if root.hasPath() then result = root else result = getAUseTreeUseTree(root) ) }