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
|
||||
|
||||
if let url = singleFaviconDownloader.homePageURL {
|
||||
if self.homePageToFaviconURLCache[url] == nil {
|
||||
self.homePageToFaviconURLCache[url] = singleFaviconDownloader.faviconURL
|
||||
self.homePageToFaviconURLCacheDirty = true
|
||||
}
|
||||
if self.homePageToFaviconURLCache[homePageURL] == nil {
|
||||
self.homePageToFaviconURLCache[homePageURL] = singleFaviconDownloader.faviconURL
|
||||
self.homePageToFaviconURLCacheDirty = true
|
||||
}
|
||||
|
||||
postFaviconDidBecomeAvailableNotification(singleFaviconDownloader.faviconURL)
|
||||
|
|
Loading…
Reference in New Issue