Переглянути джерело

Merge pull request #509 from onevcat/fix/retrieve-task-public

Make empty task public
Wei Wang 9 роки тому
батько
коміт
9f4c938892
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Sources/KingfisherManager.swift

+ 1 - 1
Sources/KingfisherManager.swift

@@ -37,7 +37,7 @@ public typealias CompletionHandler = ((_ image: Image?, _ error: NSError?, _ cac
 /// It contains an async task of getting image from disk and from network.
 /// It contains an async task of getting image from disk and from network.
 public class RetrieveImageTask {
 public class RetrieveImageTask {
     
     
-    static let empty = RetrieveImageTask()
+    public static let empty = RetrieveImageTask()
     
     
     // If task is canceled before the download task started (which means the `downloadTask` is nil),
     // If task is canceled before the download task started (which means the `downloadTask` is nil),
     // the download task should not begin.
     // the download task should not begin.