JavaScript: Remove omittable exists variables

This commit is contained in:
Tony Torralba
2022-12-21 16:33:15 +01:00
parent 32471d326e
commit 3b6dae41cd
20 changed files with 36 additions and 57 deletions

View File

@@ -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