Skip to content

Commit aef9645

Browse files
change use of toString() to getName()
1 parent 81e027f commit aef9645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/src/queries/Security/CWE-321/HardcodedEncryptionKey.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ abstract class KeySource extends Expr { }
2323
* A literal byte array is a key source.
2424
*/
2525
class ByteArrayLiteralSource extends KeySource {
26-
ByteArrayLiteralSource() { this = any(ArrayExpr arr | arr.getType().toString() = "Array<UInt8>") }
26+
ByteArrayLiteralSource() { this = any(ArrayExpr arr | arr.getType().getName() = "Array<UInt8>") }
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)