Skip to content

Commit 16c1a7b

Browse files
committed
Make variable names consistent. Make returns have a newline above.
1 parent b3d1a68 commit 16c1a7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/Orders/OrderDetails/OrderDetailsViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,12 @@ extension OrderDetailsViewController: UITableViewDataSource {
121121
return nil
122122
}
123123

124-
guard let header = tableView.dequeueReusableHeaderFooterView(withIdentifier: TwoColumnSectionHeaderView.reuseIdentifier) as? TwoColumnSectionHeaderView else {
124+
guard let cell = tableView.dequeueReusableHeaderFooterView(withIdentifier: TwoColumnSectionHeaderView.reuseIdentifier) as? TwoColumnSectionHeaderView else {
125125
fatalError()
126126
}
127+
cell.configure(leftText: leftText, rightText: sections[section].rightTitle)
127128

128-
header.configure(leftText: leftText, rightText: sections[section].rightTitle)
129-
130-
return header
129+
return cell
131130
}
132131

133132
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
@@ -153,6 +152,7 @@ extension OrderDetailsViewController: UITableViewDataSource {
153152
let sections = IndexSet(integer: section)
154153
tableView.reloadSections(sections, with: .fade)
155154
}
155+
156156
return cell
157157
}
158158
}

0 commit comments

Comments
 (0)