فهرست منبع

Merge pull request #1729 from onevcat/fix/optional-retry

Allow retry modifier accept nil value
Wei Wang 4 سال پیش
والد
کامیت
7786164172
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Sources/General/KFOptionsSetter.swift

+ 1 - 1
Sources/General/KFOptionsSetter.swift

@@ -287,7 +287,7 @@ extension KFOptionSetter {
     /// Sets a retry strategy that will be used when something gets wrong during the image retrieving.
     /// - Parameter strategy: The provided strategy to define how the retrying should happen.
     /// - Returns: A `Self` value with changes applied.
-    public func retry(_ strategy: RetryStrategy) -> Self {
+    public func retry(_ strategy: RetryStrategy?) -> Self {
         options.retryStrategy = strategy
         return self
     }