Bläddra i källkod

refactor: unnecessary newValue

nuomi1 6 år sedan
förälder
incheckning
a28ddfac6b
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 {