Remove redundant nil check for homePageURL
This commit is contained in:
parent
6c5f0cc8b6
commit
ee48f4baba
|
@ -177,11 +177,9 @@ final class FaviconDownloader {
|
||||||
|
|
||||||
remainingFaviconURLs[homePageURL] = nil
|
remainingFaviconURLs[homePageURL] = nil
|
||||||
|
|
||||||
if let url = singleFaviconDownloader.homePageURL {
|
if self.homePageToFaviconURLCache[homePageURL] == nil {
|
||||||
if self.homePageToFaviconURLCache[url] == nil {
|
self.homePageToFaviconURLCache[homePageURL] = singleFaviconDownloader.faviconURL
|
||||||
self.homePageToFaviconURLCache[url] = singleFaviconDownloader.faviconURL
|
self.homePageToFaviconURLCacheDirty = true
|
||||||
self.homePageToFaviconURLCacheDirty = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
postFaviconDidBecomeAvailableNotification(singleFaviconDownloader.faviconURL)
|
postFaviconDidBecomeAvailableNotification(singleFaviconDownloader.faviconURL)
|
||||||
|
|
Loading…
Reference in New Issue