Skip to content

Commit 378436a

Browse files
committed
Tidy up code
1 parent 9c3138b commit 378436a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class CqlClauseParserCallWithStringConcat instanceof CqlClauseParserCall {
162162
class CqlInjectionConfiguration extends TaintTracking::Configuration {
163163
CqlInjectionConfiguration() { this = "CQL injection from untrusted data" }
164164

165-
override predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
165+
override predicate isSource(DataFlow::Node node) { node instanceof RemoteFlowSource }
166166

167167
override predicate isSink(DataFlow::Node node) { node instanceof CqlInjectionSink }
168168

@@ -174,7 +174,7 @@ class CqlInjectionConfiguration extends TaintTracking::Configuration {
174174
*/
175175

176176
exists(CqlClauseParserCall cqlParserCall |
177-
start = cqlParserCall.(CqlClauseParserCall).getAnArgument() and
177+
start = cqlParserCall.getAnArgument() and
178178
end = cqlParserCall
179179
)
180180
or

0 commit comments

Comments
 (0)