Skip to content

Commit 3253c04

Browse files
d10cMathiasVP
authored andcommitted
Swift: s/getName/getShortName/ in InlineFlowTest.qll
1 parent 050b8e6 commit 3253c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/ql/test/TestUtilities/InlineFlowTest.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ import codeql.swift.dataflow.TaintTracking
4242
import TestUtilities.InlineExpectationsTest
4343

4444
private predicate defaultSource(DataFlow::Node source) {
45-
source.asExpr().(MethodCallExpr).getStaticTarget().getName() = ["source", "taint"]
45+
source.asExpr().(MethodCallExpr).getStaticTarget().getShortName() = ["source", "taint"]
4646
}
4747

4848
private predicate defaultSink(DataFlow::Node sink) {
49-
exists(MethodCallExpr ma | ma.getStaticTarget().hasName("sink") |
49+
exists(MethodCallExpr ma | ma.getStaticTarget().getShortName() = "sink" |
5050
sink.asExpr() = ma.getAnArgument().getExpr()
5151
)
5252
}

0 commit comments

Comments
 (0)