mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 00:30:51 +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) {
|
||||
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 true
|
||||
}).map { $0.urlString }
|
||||
}).compactMap { $0.urlString }
|
||||
|
||||
completion(faviconURLs)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user