Skip to content

Commit e988a81

Browse files
author
Sharma Elanthiriayan
committed
Reorder switch cases in func configure(_ cell: UITableViewCell, for row: Row) function, as the comment states that "Cells currently configured in the order they appear on screen".
1 parent 995ff1e commit e988a81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,22 @@ private extension SettingsViewController {
106106
configureSwitchStore(cell: cell)
107107
case let cell as BasicTableViewCell where row == .plugins:
108108
configurePlugins(cell: cell)
109-
case let cell as BasicTableViewCell where row == .support:
110-
configureSupport(cell: cell)
111109
case let cell as BasicTableViewCell where row == .inPersonPayments:
112110
configureInPersonPayments(cell: cell)
113111
case let cell as BasicTableViewCell where row == .installJetpack:
114112
configureInstallJetpack(cell: cell)
115-
case let cell as BasicTableViewCell where row == .privacy:
116-
configurePrivacy(cell: cell)
113+
case let cell as BasicTableViewCell where row == .support:
114+
configureSupport(cell: cell)
117115
case let cell as BasicTableViewCell where row == .betaFeatures:
118116
configureBetaFeatures(cell: cell)
119117
case let cell as BasicTableViewCell where row == .sendFeedback:
120118
configureSendFeedback(cell: cell)
119+
case let cell as BasicTableViewCell where row == .privacy:
120+
configurePrivacy(cell: cell)
121121
case let cell as BasicTableViewCell where row == .about:
122122
configureAbout(cell: cell)
123+
case let cell as BasicTableViewCell where row == .whatsNew:
124+
configureWhatsNew(cell: cell)
123125
case let cell as BasicTableViewCell where row == .licenses:
124126
configureLicenses(cell: cell)
125127
case let cell as BasicTableViewCell where row == .deviceSettings:
@@ -128,8 +130,6 @@ private extension SettingsViewController {
128130
configureWormholy(cell: cell)
129131
case let cell as BasicTableViewCell where row == .logout:
130132
configureLogout(cell: cell)
131-
case let cell as BasicTableViewCell where row == .whatsNew:
132-
configureWhatsNew(cell: cell)
133133
default:
134134
fatalError()
135135
}

0 commit comments

Comments
 (0)