Skip to content

Commit a59a404

Browse files
committed
Ruby: redundant check is implied by isToplevel()
1 parent 1f70c59 commit a59a404

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/Module.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ private module ResolveImpl {
407407
*/
408408
string getAnAssumedGlobalConst() {
409409
exists(ConstantAccess access |
410-
not exists(access.getScopeExpr()) and
411410
result = access.getName() and
412411
isToplevel(access)
413412
)

0 commit comments

Comments
 (0)