mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 16:51:19 +01:00
Handle possible nil favicon.urlString.
This commit is contained in:
parent
7f5d6babbd
commit
2cdcddeefe
@ -54,14 +54,15 @@ struct FaviconURLFinder {
|
|||||||
if ignoredMimeTypes.contains(type) {
|
if ignoredMimeTypes.contains(type) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
if let url = URL(string: favicon.urlString), ignoredExtensions.contains(url.pathExtension) {
|
else {
|
||||||
|
if let urlString = favicon.urlString, let url = URL(string: urlString), ignoredExtensions.contains(url.pathExtension) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}).map { $0.urlString }
|
}).compactMap { $0.urlString }
|
||||||
|
|
||||||
completion(faviconURLs)
|
completion(faviconURLs)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user