forked from organicmaps/organicmaps
[MAPSME-4221] [ios] Fixed banners cache.
This commit is contained in:
parent
c164ba5d5b
commit
073ffc34a3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue