Skip to content

Commit aad77c2

Browse files
committed
Swift: Use TypeDecl.getABaseTypeDecl().
1 parent 8ff0a19 commit aad77c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class CleartextStorageConfig extends TaintTracking::Configuration {
8989
isSink(node) and
9090
exists(ClassDecl cd |
9191
c.getAReadContent().(DataFlow::Content::FieldContent).getField() = cd.getAMember() and
92-
cd.getType().(NominalType).getABaseType*().getName() = "RealmSwiftObject"
92+
cd.getABaseTypeDecl*().getName() = "RealmSwiftObject"
9393
)
9494
or
9595
// any default implicit reads

0 commit comments

Comments
 (0)