Parcourir la source

refactor: unnecessary newValue

nuomi1 il y a 6 ans
Parent
commit
a28ddfac6b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {