Enable SwiftLint rule 'multiline_function_chains' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 00:20:08 +02:00 committed by Mingshen Sun
parent c87f4e9792
commit 776c813f94
3 changed files with 27 additions and 26 deletions

View file

@ -34,7 +34,8 @@ class UICodeHighlightingLabel: UILocalizedLabel {
return NSAttributedString(string: line, attributes: UICodeHighlightingLabel.CODE_ATTRIBUTES)
}
return NSAttributedString(string: line)
}.reduce(into: NSMutableAttributedString(string: "")) {
}
.reduce(into: NSMutableAttributedString(string: "")) {
$0.append($1)
$0.append(UICodeHighlightingLabel.ATTRIBUTED_NEWLINE)
}