Small polish.

This commit is contained in:
Krunoslav Zaher 2015-12-21 21:48:11 +01:00
parent 6040789f93
commit d09832edff
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ extension ControlEvent {
#if DEBUG
rxFatalError("Somehow driver received error from a source that shouldn't fail.")
#else
return Drive.empty()
return Driver.empty()
#endif
}
}

View File

@ -32,8 +32,8 @@ struct WikipediaSearchResult: CustomDebugStringConvertible {
throw WikipediaParseError
}
let titleAndDescription = Array(Swift.zip(rootArrayTyped[0], rootArrayTyped[1]))
let titleDescriptionAndUrl: [((AnyObject, AnyObject), AnyObject)] = Array(Swift.zip(titleAndDescription, rootArrayTyped[2]))
let titleAndDescription = Array(zip(rootArrayTyped[0], rootArrayTyped[1]))
let titleDescriptionAndUrl: [((AnyObject, AnyObject), AnyObject)] = Array(zip(titleAndDescription, rootArrayTyped[2]))
let searchResults: [WikipediaSearchResult] = try titleDescriptionAndUrl.map ( { result -> WikipediaSearchResult in
let (first, url) = result