Skip to content

Commit e18a289

Browse files
committed
Updated variables name to "title"
1 parent 9e3694f commit e18a289

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/Product Settings/ProductSettingsRows.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ enum ProductSettingsRows {
7676
return
7777
}
7878

79-
let titleView = NSLocalizedString("Catalog Visibility", comment: "Catalog Visibility label in Product Settings")
80-
cell.updateUI(title: titleView, value: settings.catalogVisibility.description)
79+
let title = NSLocalizedString("Catalog Visibility", comment: "Catalog Visibility label in Product Settings")
80+
cell.updateUI(title: title, value: settings.catalogVisibility.description)
8181
cell.accessoryType = .disclosureIndicator
8282
}
8383

@@ -107,8 +107,8 @@ enum ProductSettingsRows {
107107
return
108108
}
109109

110-
let titleView = NSLocalizedString("Slug", comment: "Slug label in Product Settings")
111-
cell.updateUI(title: titleView, value: settings.slug)
110+
let title = NSLocalizedString("Slug", comment: "Slug label in Product Settings")
111+
cell.updateUI(title: title, value: settings.slug)
112112
cell.accessoryType = .disclosureIndicator
113113
}
114114

@@ -137,8 +137,8 @@ enum ProductSettingsRows {
137137
return
138138
}
139139

140-
let titleView = NSLocalizedString("Purchase Note", comment: "Purchase note label in Product Settings")
141-
cell.updateUI(title: titleView, value: settings.purchaseNote?.strippedHTML)
140+
let title = NSLocalizedString("Purchase Note", comment: "Purchase note label in Product Settings")
141+
cell.updateUI(title: title, value: settings.purchaseNote?.strippedHTML)
142142
cell.accessoryType = .disclosureIndicator
143143
}
144144

@@ -167,8 +167,8 @@ enum ProductSettingsRows {
167167
return
168168
}
169169

170-
let titleView = NSLocalizedString("Menu Order", comment: "Menu order label in Product Settings")
171-
cell.updateUI(title: titleView, value: nil)
170+
let title = NSLocalizedString("Menu Order", comment: "Menu order label in Product Settings")
171+
cell.updateUI(title: title, value: nil)
172172
cell.accessoryType = .disclosureIndicator
173173
}
174174

0 commit comments

Comments
 (0)