Remove redundant nil check for homePageURL

This commit is contained in:
Nate Weaver 2020-02-15 08:22:51 -06:00
parent 6c5f0cc8b6
commit ee48f4baba
1 changed files with 3 additions and 5 deletions

View File

@ -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)