diff --git a/Shared/Favicons/FaviconDownloader.swift b/Shared/Favicons/FaviconDownloader.swift index aeb42f960..604db246b 100644 --- a/Shared/Favicons/FaviconDownloader.swift +++ b/Shared/Favicons/FaviconDownloader.swift @@ -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)