Skip to content

Commit 28e62ab

Browse files
author
Gerardo
committed
Use if let to unwrap textColor value
1 parent a41d881 commit 28e62ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Aztec/Classes/Formatters/Implementations/MarkFormatter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class MarkFormatter: AttributeFormatter {
2626
}
2727
resultingAttributes[.markHtmlRepresentation] = representationToUse
2828

29-
if textColor != nil {
30-
resultingAttributes[.foregroundColor] = UIColor(hexString: textColor!)
29+
if let textColor = textColor {
30+
resultingAttributes[.foregroundColor] = UIColor(hexString: textColor)
3131
}
3232

3333
return resultingAttributes

0 commit comments

Comments
 (0)