Fixes compile warnings.
This commit is contained in:
parent
13a75158d1
commit
7544a2535e
|
|
@ -36,7 +36,7 @@ class RxCollectionViewSectionedAnimatedDataSource<S: SectionModelType> : RxColle
|
|||
setSections(c.finalSections)
|
||||
collectionView.performBatchUpdates(c)
|
||||
}
|
||||
case .Error(let _):
|
||||
case .Error:
|
||||
#if DEBUG
|
||||
fatalError("Binding error to UI")
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class RxCollectionViewSectionedReloadDataSource<S: SectionModelType> : RxCollect
|
|||
case .Next(let element):
|
||||
setSections(element)
|
||||
collectionView.reloadData()
|
||||
case .Error(let error):
|
||||
case .Error:
|
||||
#if DEBUG
|
||||
fatalError("Binding error to UI")
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import Foundation
|
|||
func parseImageURLsfromHTML(html: NSString) throws -> [NSURL] {
|
||||
let regularExpression = try NSRegularExpression(pattern: "<img[^>]*src=\"([^\"]+)\"[^>]*>", options: [])
|
||||
|
||||
let matches = regularExpression.matchesInString(html as String, options: [], range: NSMakeRange(0, html.length)) as! [NSTextCheckingResult]
|
||||
let matches = regularExpression.matchesInString(html as String, options: [], range: NSMakeRange(0, html.length))
|
||||
|
||||
return matches.map { match -> NSURL? in
|
||||
if match.numberOfRanges != 2 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue