Skip to content

Commit f286b5f

Browse files
committed
Refactor exclusion for readability
1 parent b46bb5e commit f286b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap/CAPLogInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CdsLogSink extends DataFlow::Node {
3737
this = loggingMethod.getAnArgument() and
3838
loggingMethod.getMethodName() = ["trace", "debug", "info", "log", "warn", "error"] and
3939
not this.asExpr() instanceof Literal and
40-
not exists(ConstantOnlyTemplateLiteral t | this.asExpr() = t) and
40+
not this.asExpr() instanceof ConstantOnlyTemplateLiteral and
4141
loggingMethod.getReceiver().getALocalSource() = log
4242
)
4343
}

0 commit comments

Comments
 (0)