removed redundant check.

This commit is contained in:
Christiano, Kevin 2019-04-10 10:06:53 -04:00
parent 6114bbbf92
commit 503bbc4605

View File

@ -31,10 +31,7 @@ public typealias CoreObjectActionLoadPresentDelegate = MVMCoreActionDelegateProt
let mutableAttributedText = NSMutableAttributedString(attributedString: newAttribText)
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = CGFloat(LabelWithInternalButtonLineSpace)
if newAttribText.length > 0 {
mutableAttributedText.addAttribute(.paragraphStyle, value: paragraphStyle, range: NSRange(location: 0, length: newAttribText.length))
}
mutableAttributedText.addAttribute(.paragraphStyle, value: paragraphStyle, range: NSRange(location: 0, length: newAttribText.length))
label?.attributedText = mutableAttributedText
}
}