Fix the test case during refactory the prefetch logic
This commit is contained in:
parent
1e1ddccc1a
commit
63201c7145
|
@ -123,6 +123,9 @@ public final class ImageManager : ObservableObject {
|
|||
manager.loadImage(with: url, options: options, context: context, progress: nil) { (image, data, error, cacheType, finished, imageUrl) in
|
||||
// This will callback immediately
|
||||
self.image = image
|
||||
if let image = image {
|
||||
self.successBlock?(image, cacheType)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue