Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 4 support. #266

Merged
merged 3 commits into from Nov 28, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/Scopes.swift
Expand Up @@ -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
}
}

Expand Down