Skip to content

Commit 719e8b4

Browse files
committed
unified: Prefer instanceof
1 parent 1f380d2 commit 719e8b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unified/ql/lib/codeql/unified/internal/LocalNameBinding.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
317317

318318
predicate uncertainScope(AstNode scope) {
319319
// Classes can have uncertain members due to unqualified access to inherited members.
320-
scope = any(ClassLikeDeclaration cls)
320+
scope instanceof ClassLikeDeclaration
321321
or
322322
scope = any(TopLevel t).getBody() // Imported names are in scope here
323323
or

0 commit comments

Comments
 (0)