Skip to content

Commit 3c8d7f8

Browse files
committed
Small refactor on formatToString function
1 parent a1bfa14 commit 3c8d7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/Time Range/AnalyticsHubTimeRange.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct AnalyticsHubTimeRange {
1111

1212
let startDateDescription = DateFormatter.Stats.createAnalyticsHubDayMonthFormatter(timezone: timezone).string(from: start)
1313

14-
var endDateDescription: String
14+
let endDateDescription: String
1515
if start.isSameMonth(as: end, using: calendar) {
1616
endDateDescription = DateFormatter.Stats.createAnalyticsHubDayYearFormatter(timezone: timezone).string(from: end)
1717
} else {

0 commit comments

Comments
 (0)