Skip to content

Commit 7b50469

Browse files
authored
Merge pull request #720 from woocommerce/fix-lint
Fix lint errors
2 parents e78f232 + 6a582ed commit 7b50469

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

WooCommerce/Classes/Tools/Zendesk/ZendeskManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ extension ZendeskManager: SupportManagerAdapter {
270270

271271
/// This handles Zendesk push notifications.
272272
///
273-
func displaySupportRequest(using userInfo: [AnyHashable : Any]) {
273+
func displaySupportRequest(using userInfo: [AnyHashable: Any]) {
274274
guard zendeskEnabled == true,
275275
let requestId = userInfo[PushKey.requestID] as? String else {
276276
DDLogInfo("Zendesk push notification payload is invalid.")

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Help/ApplicationLogViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ApplicationLogViewController: UIViewController {
103103

104104
sections = [
105105
Section(title: logFileTitle, footer: logFileFooter, rows: logFileRows),
106-
Section(title: nil, footer:nil, rows:[.clearLogs])
106+
Section(title: nil, footer: nil, rows: [.clearLogs])
107107
]
108108
}
109109

@@ -197,7 +197,7 @@ private extension ApplicationLogViewController {
197197
let logFileInfo: DDLogFileInfo = logFiles[indexPath.row]
198198
cell.accessoryType = .disclosureIndicator
199199
cell.selectionStyle = .default
200-
cell.textLabel?.text = indexPath.row == 0 ? NSLocalizedString("Current", comment:"Cell title: the current date.") : dateFormatter.string(from: logFileInfo.creationDate)
200+
cell.textLabel?.text = indexPath.row == 0 ? NSLocalizedString("Current", comment: "Cell title: the current date.") : dateFormatter.string(from: logFileInfo.creationDate)
201201
}
202202

203203
/// Clear application logs cell.

WooCommerce/Classes/ViewRelated/Orders/OrderLoaderViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private extension OrderLoaderViewController {
220220
switch state {
221221
case .loading:
222222
stopSpinner()
223-
case .success(_):
223+
case .success:
224224
detachChildrenViewControllers()
225225
case .failure:
226226
removeAllOverlays()

0 commit comments

Comments
 (0)