Просмотр исходного кода

Allow retry modifier accept nil value

onevcat 4 лет назад
Родитель
Сommit
4ad03bcdbb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Sources/General/KFOptionsSetter.swift

+ 1 - 1
Sources/General/KFOptionsSetter.swift

@@ -303,7 +303,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
     }