Skip to content

Commit

Permalink
Merge pull request #11 from albertodebortoli/fix-playground
Browse files Browse the repository at this point in the history
Fix playground
  • Loading branch information
albertodebortoli authored May 3, 2019
2 parents b3ae55a + effb1f5 commit 5e9cb5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Example/GettingStarted.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func map(data: [Dictionary<String,AnyObject>]) -> Future<[FooBar]> {
print(#function)
print("data: " + String(describing: data))
let promise = Promise<[FooBar]>()
promise.setResult(data.flatMap { obj -> FooBar? in
promise.setResult(data.compactMap { obj -> FooBar? in
if let value = obj["key"] as? String {
return FooBar(value: value)
}
Expand Down
2 changes: 1 addition & 1 deletion Example/GettingStarted.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='ios' display-mode='raw' executeOnSourceChanges='false'>
<playground version='5.0' target-platform='ios' display-mode='raw'>
<timeline fileName='timeline.xctimeline'/>
</playground>

0 comments on commit 5e9cb5b

Please sign in to comment.