From 073ffc34a307211519617bae9c9f37efc8e6b4c6 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Thu, 6 Apr 2017 11:13:56 +0300 Subject: [PATCH] [MAPSME-4221] [ios] Fixed banners cache. --- iphone/Maps/Core/Ads/BannersCache.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Core/Ads/BannersCache.swift b/iphone/Maps/Core/Ads/BannersCache.swift index 650d152d64..eb88f90f69 100644 --- a/iphone/Maps/Core/Ads/BannersCache.swift +++ b/iphone/Maps/Core/Ads/BannersCache.swift @@ -22,12 +22,12 @@ final class BannersCache: NSObject { private func onCompletion(isAsync: Bool) { guard let completion = completion else { return } var bannerType: BannerType? - for loadState in loadStates { + statesLoop: for loadState in loadStates { switch loadState { case .notLoaded(_): return case .loaded(let type): bannerType = type - break + break statesLoop case .error: continue } }