mirror of
https://github.com/github/codeql.git
synced 2026-04-20 14:34:04 +02:00
JavaScript: Remove omittable exists variables
This commit is contained in:
@@ -173,10 +173,8 @@ where
|
||||
// don't flag replacements of certain characters with whitespace
|
||||
not whitelistedRemoval(repl)
|
||||
or
|
||||
exists(DataFlow::RegExpLiteralNode rel |
|
||||
isBackslashEscape(repl, rel) and
|
||||
not allBackslashesEscaped(repl) and
|
||||
msg = "This does not escape backslash characters in the input."
|
||||
)
|
||||
isBackslashEscape(repl, _) and
|
||||
not allBackslashesEscaped(repl) and
|
||||
msg = "This does not escape backslash characters in the input."
|
||||
)
|
||||
select repl.getCalleeNode(), msg
|
||||
|
||||
Reference in New Issue
Block a user