Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Cleanup minor SwiftLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jncosideout committed May 26, 2021
1 parent 5a3bcba commit 4c9a315
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Extensions/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ extension String {
throw NSError(domain: "RegexB must contain RegexA to find the difference between them", code: Errors.codes.regexSearchStringError.rawValue)
}

let startIndex = self.range(of:endOfRegexA, options: .regularExpression)?.upperBound
let endIndex = self.range(of:endOfRegexB, options: .regularExpression)?.upperBound
let startIndex = self.range(of: endOfRegexA, options: .regularExpression)?.upperBound
let endIndex = self.range(of: endOfRegexB, options: .regularExpression)?.upperBound
if let start = startIndex, let end = endIndex {
let result = self[start..<end]
return String(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class ProductDetailViewController: ButtonBarPagerTabStripViewController, DataMan
rows.append(FormRow(value: product as Any, cellType: HostedViewCell.self))

createFormRow(with: &rows, item: product.packaging, label: InfoRowKey.packaging.localizedString)

createFormRow(with: &rows, item: product.origins, label: InfoRowKey.origins.localizedString)

// Info rows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SummaryFormTableViewController: FormTableViewController {
}

override func viewWillDisappear(_ animated: Bool) {
//dismiss floating panel
// dismiss floating panel
if let productDetailVC = delegate as? ProductDetailViewController {
productDetailVC.hideFloatingPanel()
}
Expand Down

0 comments on commit 4c9a315

Please sign in to comment.