Skip to content

Commit be88c4f

Browse files
committed
Swift: Clean up the URL.init model.
1 parent bf7437f commit be88c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private module Cached {
5353
c.getName() = "URL" and
5454
c.getAMember() = f and
5555
f.getName() = ["init(string:)", "init(string:relativeTo:)"] and
56-
call.getFunction().(ApplyExpr).getStaticTarget() = f and
56+
call.getStaticTarget() = f and
5757
nodeFrom.asExpr() = call.getAnArgument().getExpr() and
5858
nodeTo.asExpr() = call
5959
)

0 commit comments

Comments
 (0)