Skip to content

Commit 682b1cb

Browse files
committed
UIFont+Woo: Renames variables
1 parent d9867f4 commit 682b1cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/Classes/Extensions/UIFont+Woo.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ extension UIFont {
99
/// Returns the receiver *Bold* version.
1010
///
1111
var bold: UIFont {
12-
guard let italicDescriptor = fontDescriptor.withSymbolicTraits(.traitBold) else {
12+
guard let descriptor = fontDescriptor.withSymbolicTraits(.traitBold) else {
1313
DDLogError("# Error: Cannot toggle font to Bold: [\(self)]")
1414
return self
1515
}
1616

17-
return UIFont(descriptor: italicDescriptor, size: pointSize)
17+
return UIFont(descriptor: descriptor, size: pointSize)
1818
}
1919

2020
/// Returns the receiver *Italics* version.
2121
///
2222
var italics: UIFont {
23-
guard let italicDescriptor = fontDescriptor.withSymbolicTraits(.traitItalic) else {
23+
guard let descriptor = fontDescriptor.withSymbolicTraits(.traitItalic) else {
2424
DDLogError("# Error: Cannot toggle font to Italics: [\(self)]")
2525
return self
2626
}
2727

28-
return UIFont(descriptor: italicDescriptor, size: pointSize)
28+
return UIFont(descriptor: descriptor, size: pointSize)
2929
}
3030
}

0 commit comments

Comments
 (0)