Skip to content

Commit 98e5607

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: remove exists variable
1 parent 090e929 commit 98e5607

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/ql/lib/semmle/code/java/security/CsrfUnprotectedRequestTypeQuery.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ predicate unprotectedDatabaseUpdate(CallPathNode sourceMethod, CallPathNode sink
185185
sinkMethod.asMethod() instanceof SqlInjectionMethod and
186186
sinkMethod.asMethod().hasName("execute")
187187
then
188-
exists(SqlExecuteFlow::PathNode executeSrc, SqlExecuteFlow::PathNode executeSink |
189-
SqlExecuteFlow::flowPath(executeSrc, executeSink)
190-
|
188+
exists(SqlExecuteFlow::PathNode executeSink | SqlExecuteFlow::flowPath(_, executeSink) |
191189
sinkMethodCall.asCall() = executeSink.getNode().asExpr().(Argument).getCall()
192190
)
193191
else any()

0 commit comments

Comments
 (0)