Skip to content

Commit 5698366

Browse files
committed
Avoid local variable.
1 parent ba8524a commit 5698366

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Aztec/Classes/TextKit/TextView.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,11 @@ open class TextView: UITextView {
249249
}
250250

251251
open lazy var defaultTextColor: UIColor? = {
252-
let color: UIColor
253252
if #available(iOS 13.0, *) {
254-
color = UIColor.label
253+
return UIColor.label
255254
} else {
256-
color = UIColor.darkText
257-
}
258-
return color
255+
return UIColor.darkText
256+
}
259257
}()
260258

261259
// MARK: - Plugin Loading

0 commit comments

Comments
 (0)