Skip to content

Commit 37fc8f5

Browse files
committed
Swift: Update test expectations
1 parent 18c6b68 commit 37fc8f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/ql/test/library-tests/dataflow/taint/string.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ func taintThroughSimpleStringOperations() {
244244
sink(arg: tainted.reversed()) // $ tainted=217
245245

246246
sink(arg: tainted.split(separator: ",")) // $ tainted=217
247-
sink(arg: tainted.split(whereSeparator: { // $ tainted=217
247+
sink(arg: tainted.split(whereSeparator: {
248248
c in return (c == ",")
249-
}))
249+
})) // $ tainted=217
250250
sink(arg: tainted.trimmingCharacters(in: CharacterSet.whitespaces)) // $ tainted=217
251251
sink(arg: tainted.padding(toLength: 20, withPad: " ", startingAt: 0)) // $ tainted=217
252252
sink(arg: tainted.components(separatedBy: CharacterSet.whitespaces)) // $ tainted=217

0 commit comments

Comments
 (0)