mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Avoid materializing DataFlow::Node.getFile
This commit is contained in:
@@ -112,7 +112,8 @@ module GlobalAccessPath {
|
||||
exists(DataFlow::Node rhs |
|
||||
fromRhs(rhs) = accessPath and
|
||||
not isSelfAssignment(rhs) and
|
||||
rhs.getFile() = file
|
||||
// Note: Avoid unneeded materialization of DataFlow::Node.getFile()
|
||||
rhs.getAstNode().getFile() = file
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user