Skip to content

Commit e456e6d

Browse files
committed
Remove unnecessary get from SelectionType.description
1 parent 2ad3e8c commit e456e6d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,15 @@ extension AnalyticsHubTimeRangeSelection {
9090
case yearToDate
9191

9292
var description: String {
93-
get {
94-
switch self {
95-
case .today:
96-
return Localization.today
97-
case .weekToDate:
98-
return Localization.weekToDate
99-
case .monthToDate:
100-
return Localization.monthToDate
101-
case .yearToDate:
102-
return Localization.yearToDate
103-
}
93+
switch self {
94+
case .today:
95+
return Localization.today
96+
case .weekToDate:
97+
return Localization.weekToDate
98+
case .monthToDate:
99+
return Localization.monthToDate
100+
case .yearToDate:
101+
return Localization.yearToDate
104102
}
105103
}
106104

0 commit comments

Comments
 (0)