Skip to content

Commit 7fd64f1

Browse files
committed
Swift: Make QL-for-QL happy.
1 parent 926da4b commit 7fd64f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/ql/src/queries/Security/CWE-311/CleartextStorageDatabase.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class RealmStore extends Stored {
4747
exists(ClassDecl c, AbstractFunctionDecl f, CallExpr call |
4848
c.getName() = "Realm" and
4949
c.getAMember() = f and
50-
f.getName() = ["add(_:update:)"] and
50+
f.getName() = "add(_:update:)" and
5151
call.getFunction().(ApplyExpr).getStaticTarget() = f and
5252
call.getArgument(0).getExpr() = this
5353
)
@@ -56,7 +56,7 @@ class RealmStore extends Stored {
5656
exists(ClassDecl c, AbstractFunctionDecl f, CallExpr call |
5757
c.getName() = "Realm" and
5858
c.getAMember() = f and
59-
f.getName() = ["create(_:value:update:)"] and
59+
f.getName() = "create(_:value:update:)" and
6060
call.getFunction().(ApplyExpr).getStaticTarget() = f and
6161
call.getArgument(1).getExpr() = this
6262
)

0 commit comments

Comments
 (0)