[iOS] Added assert to break on invalid urls.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-03-21 13:03:59 +03:00 committed by Viktor Govako
parent 2d8eb42f74
commit 9129844746

View file

@ -121,6 +121,7 @@ void BackgroundDownloaderAdapter::DownloadFromAnyUrl(CountryId const & countryId
};
NSURL * url = [NSURL URLWithString:@(urls.back().c_str())];
assert(url != nil);
BackgroundDownloader * downloader = [BackgroundDownloader sharedBackgroundMapDownloader];
NSUInteger taskId = [downloader downloadWithUrl:url completion:onFinish progress:onProgress];