Skip to content

Commit ff0f514

Browse files
committed
Fixed Hound CI warnings
1 parent a40678a commit ff0f514

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/Product Settings/Menu Order/ProductMenuOrderViewController.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ final class ProductMenuOrderViewController: UIViewController {
1818
///
1919
init(settings: ProductSettings, completion: @escaping Completion) {
2020
productSettings = settings
21-
let footerText = NSLocalizedString("Determines the products positioning in the catalog. The lower the value of the number, the higher the item will be on the product list. You can also use negative values",
21+
let text1 =
22+
let footerText = NSLocalizedString("Determines the products positioning in the catalog."
23+
+ " The lower the value of the number, the higher the item will be on the product list. You can also use negative values",
2224
comment: "Footer text in Product Menu order screen")
2325
sections = [Section(footer: footerText, rows: [.menuOrder])]
2426
onCompletion = completion
@@ -141,8 +143,8 @@ private extension ProductMenuOrderViewController {
141143

142144
let placeholder = NSLocalizedString("Menu order", comment: "Placeholder in the Product Menu Order row on Edit Product Menu Order screen.")
143145

144-
let viewModel = TextFieldTableViewCell.ViewModel(text: String(productSettings.menuOrder), placeholder: placeholder, onTextChange: { [weak self] newMenuOrder in
145-
if let newMenuOrder = Int(newMenuOrder ?? "0") {
146+
let viewModel = TextFieldTableViewCell.ViewModel(text: String(productSettings.menuOrder), placeholder: placeholder, onTextChange: { [weak self] menuOrder in
147+
if let newMenuOrder = Int(menuOrder ?? "0") {
146148
self?.productSettings.menuOrder = newMenuOrder
147149
}
148150
}, onTextDidBeginEditing: {

0 commit comments

Comments
 (0)