Skip to content

Commit 9a27016

Browse files
committed
Swift: Make QL-for-QL happy.
1 parent f1905f2 commit 9a27016

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

swift/ql/lib/codeql/swift/security/UnsafeJsEvalExtensions.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ private class DefaultUnsafeJsEvalAdditionalTaintStep extends UnsafeJsEvalAdditio
116116
)
117117
or
118118
exists(CallExpr ce, Expr self, AbstractClosureExpr closure |
119-
ce.getStaticTarget()
120-
.getName()
121-
.matches(["withUnsafeBufferPointer(%)"]) and
119+
ce.getStaticTarget().getName().matches("withUnsafeBufferPointer(%)") and
122120
self = ce.getQualifier() and
123121
ce.getArgument(0).getExpr() = closure
124122
|

0 commit comments

Comments
 (0)