Skip to content

Commit de4db29

Browse files
committed
fix(java): improve source check logic in Utils.qll
1 parent de2d722 commit de4db29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/lib/ghsl/Utils.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ predicate isCallable(DataFlow::Node sink) { sink.asExpr() instanceof MethodCall
3232
* Check if the source node is a method parameter.
3333
*/
3434
predicate checkSource(DataFlow::Node source) {
35-
// TODO: fix this
36-
source.asParameter() instanceof Parameter
35+
exists(source.asParameter())
3736
or
3837
source.asExpr() instanceof MethodCall
3938
}

0 commit comments

Comments
 (0)