MhdHejazi před 9 roky
rodič
revize
1c470623f6
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      Sources/Scopes.swift

+ 4 - 4
Sources/Scopes.swift

@@ -727,11 +727,11 @@ private func evaluate(_ node: String, _ attrs: [String: String?] = [:], _ c: Clo
         mergedAttributes.updateValue(item.element.1, forKey: item.element.0)
     }
     
-    output = output + mergedAttributes.reduce("") {
-        if let value = $0.1.1 {
-            return $0.0 + " \($0.1.0)=\"\(value)\""
+    output = output + mergedAttributes.reduce("") { result, item in
+        if let value = item.value {
+            return result + " \(item.key)=\"\(value)\""
         } else {
-            return $0.0
+            return result
         }
     }