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

refactor: unnecessary newValue

nuomi1 6 лет назад
Родитель
Сommit
a28ddfac6b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Sources/Views/AnimatedImageView.swift

+ 1 - 1
Sources/Views/AnimatedImageView.swift

@@ -574,7 +574,7 @@ class SafeArray<Element> {
             return array.indices ~= index ? array[index] : nil
         }
         
-        set(newValue) {
+        set {
             lock.lock()
             defer { lock.unlock() }
             if let newValue = newValue, array.indices ~= index {