onevcat 10 лет назад
Родитель
Сommit
9b72ce2bd2

+ 1 - 2
Kingfisher-Demo/ViewController.swift

@@ -78,8 +78,7 @@ extension ViewController {
                                                       },
                                                   completionHandler: { image, error, cacheType, imageURL in
                                                           print("\(indexPath.row + 1): Finished")
-                                                      }
-            )
+                                                      })
         return cell
     }
 }

+ 2 - 3
Kingfisher-OSX-Demo/ViewController.swift

@@ -70,9 +70,8 @@ extension ViewController: NSCollectionViewDataSource {
                                                     },
                                               completionHandler: { image, error, cacheType, imageURL in
                                                     print("\(indexPath.item + 1): Finished")
-                                                    }
-        )
+                                                    })
         
         return item
     }
-}
+}

+ 3 - 6
Kingfisher/ImageView+Kingfisher.swift

@@ -238,10 +238,8 @@ public extension ImageView {
                                         completion: { finished in
                                             transition.completion?(finished)
                                             completionHandler?(image: image, error: error, cacheType: cacheType, imageURL: imageURL)
-                                        }
-                                    )
-                                }
-                            )
+                                        })
+                                })
 #endif
                     } else {
                         indicator?.kf_stopAnimating()
@@ -249,8 +247,7 @@ public extension ImageView {
                         completionHandler?(image: image, error: error, cacheType: cacheType, imageURL: imageURL)
                     }
                 }
-            }
-        )
+            })
         
         kf_setImageTask(task)
         

+ 2 - 4
Kingfisher/KingfisherManager.swift

@@ -189,8 +189,7 @@ public class KingfisherManager {
                 }
                 
                 completionHandler?(image: image, error: error, cacheType: .None, imageURL: URL)
-            }
-        )
+            })
     }
     
     func tryToRetrieveImageFromCacheForKey(key: String,
@@ -219,8 +218,7 @@ public class KingfisherManager {
                         completionHandler: diskTaskCompletionHandler,
                         options: options)
                 }
-            }
-        )
+            })
         retrieveImageTask.diskRetrieveTask = diskTask
     }
 }

+ 2 - 4
Kingfisher/UIButton+Kingfisher.swift

@@ -213,8 +213,7 @@ public extension UIButton {
                         completionHandler?(image: image, error: error, cacheType: cacheType, imageURL: imageURL)
                     }
                 }
-            }
-        )
+            })
         return task
     }
     
@@ -462,8 +461,7 @@ public extension UIButton {
                         completionHandler?(image: image, error: error, cacheType: cacheType, imageURL: imageURL)
                     }
                 }
-            }
-        )
+            })
         return task
     }