mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Ruby: redundant check is implied by isToplevel()
This commit is contained in:
@@ -407,7 +407,6 @@ private module ResolveImpl {
|
||||
*/
|
||||
string getAnAssumedGlobalConst() {
|
||||
exists(ConstantAccess access |
|
||||
not exists(access.getScopeExpr()) and
|
||||
result = access.getName() and
|
||||
isToplevel(access)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user