[MAPSME-4221] [ios] Fixed banners cache.

This commit is contained in:
Ilya Grechuhin 2017-04-06 11:13:56 +03:00 committed by Vladimir Byko-Ianko
parent c164ba5d5b
commit 073ffc34a3

View file

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