mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fix various code smells as reported by Sonarcloud, fixed tests
This commit is contained in:
committed by
Stefan Ceriu
parent
f5890b68a2
commit
73f507045b
@@ -46,12 +46,12 @@ struct MediaProvider: MediaProviderProtocol {
|
||||
return .success(image)
|
||||
}
|
||||
|
||||
let cachedImageLoadResult = await withCheckedContinuation({ continuation in
|
||||
let cachedImageLoadResult = await withCheckedContinuation { continuation in
|
||||
imageCache.retrieveImage(forKey: source.underlyingSource.url()) { result in
|
||||
continuation.resume(returning: result)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
if case let .success(cacheResult) = cachedImageLoadResult,
|
||||
let image = cacheResult.image {
|
||||
return .success(image)
|
||||
|
||||
Reference in New Issue
Block a user