Skip to content

Commit 406b47e

Browse files
committed
Fix warning related to Swift flatMap which is deprecated in favor of compactMap
1 parent c1d3f66 commit 406b47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/ActionTests/ActionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class ActionTests: QuickSpec {
223223
// "a" -> ["a", "b", "c"]
224224
let baseValue = UnicodeScalar(input)!.value
225225
let strings = (baseValue..<(baseValue + 3))
226-
.flatMap { UnicodeScalar($0) }
226+
.compactMap { UnicodeScalar($0) }
227227
.map { String($0) }
228228

229229
return Observable.from(strings)

0 commit comments

Comments
 (0)