浏览代码

refactor: unnecessary newValue

nuomi1 6 年之前
父节点
当前提交
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
             return array.indices ~= index ? array[index] : nil
         }
         }
         
         
-        set(newValue) {
+        set {
             lock.lock()
             lock.lock()
             defer { lock.unlock() }
             defer { lock.unlock() }
             if let newValue = newValue, array.indices ~= index {
             if let newValue = newValue, array.indices ~= index {