Ruby: redundant check is implied by isToplevel()

This commit is contained in:
Asger F
2023-03-23 14:28:09 +01:00
parent 1f70c59bbc
commit a59a404752

View File

@@ -407,7 +407,6 @@ private module ResolveImpl {
*/
string getAnAssumedGlobalConst() {
exists(ConstantAccess access |
not exists(access.getScopeExpr()) and
result = access.getName() and
isToplevel(access)
)