Skip to content

Commit 64d7296

Browse files
committed
Swift: Remove redundant cast.
1 parent 3291029 commit 64d7296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/src/queries/Security/CWE-135/StringLengthConflation.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class StringLengthConflationConfiguration extends DataFlow::Configuration {
6262
c.getName() = className and
6363
c.getAMember() = f and // TODO: will this even work if its defined in a parent class?
6464
call.getFunction().(ApplyExpr).getStaticTarget() = f and
65-
f.(AbstractFunctionDecl).getName() = methodName and
65+
f.getName() = methodName and
6666
f.getParam(arg).getName() = paramName and
6767
call.getArgument(arg).getExpr() = node.asExpr() and
6868
flowstate = "String" // `String` length flowing into `NSString`

0 commit comments

Comments
 (0)