Skip to content
This repository was archived by the owner on Jun 13, 2019. It is now read-only.

Commit ba31ab6

Browse files
committed
Fix typo
1 parent 16f97b3 commit ba31ab6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dotzu/LoggerFormat.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class LoggerFormat {
1919

2020
static func format(log: Log) -> (str: String, attr: NSMutableAttributedString) {
2121
var startIndex = 0
22-
var lenghtDate: Int?
22+
var lengthDate: Int?
2323
let stringContent = NSMutableString()
2424

2525
stringContent.append("\(log.level.logColorConsole) ")
2626
if let date = log.date, LogsSettings.shared.date {
2727
stringContent.append("[\(formatDate(date: date))] ")
28-
lenghtDate = stringContent.length
28+
lengthDate = stringContent.length
2929
startIndex = stringContent.length
3030
}
3131
if let fileInfoString = log.fileInfo, LogsSettings.shared.fileInfo {
@@ -38,8 +38,8 @@ class LoggerFormat {
3838
attstr.addAttribute(NSForegroundColorAttributeName,
3939
value: UIColor.white,
4040
range: NSMakeRange(0, stringContent.length))
41-
if let dateLenght = lenghtDate {
42-
let range = NSMakeRange(0, dateLenght)
41+
if let dateLength = lengthDate {
42+
let range = NSMakeRange(0, dateLength)
4343
attstr.addAttribute(NSForegroundColorAttributeName, value: Color.mainGreen, range: range)
4444
attstr.addAttribute(NSFontAttributeName, value: UIFont.boldSystemFont(ofSize: 12), range: range)
4545
}

0 commit comments

Comments
 (0)