Skip to content

Commit e38254c

Browse files
committed
Swift: Fix typo.
1 parent 34ffd1a commit e38254c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class StringLengthConflationConfiguration extends DataFlow::Configuration {
2323
StringLengthConflationConfiguration() { this = "StringLengthConflationConfiguration" }
2424

2525
override predicate isSource(DataFlow::Node node, string flowstate) {
26-
// result of a call to to `String.count`
26+
// result of a call to `String.count`
2727
exists(MemberRefExpr member |
2828
member.getBaseExpr().getType().getName() = "String" and
2929
member.getMember().(VarDecl).getName() = "count" and
3030
node.asExpr() = member and
3131
flowstate = "String"
3232
)
3333
or
34-
// result of a call to to `NSString.length`
34+
// result of a call to `NSString.length`
3535
exists(MemberRefExpr member |
3636
member.getBaseExpr().getType().getName() = ["NSString", "NSMutableString"] and
3737
member.getMember().(VarDecl).getName() = "length" and

0 commit comments

Comments
 (0)