Skip to content

Commit e5177d4

Browse files
committed
refactor: rename param retry to canRetry
1 parent 7381bef commit e5177d4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

WordPress/Classes/ViewRelated/Blog/Blog Dashboard/Cards/Posts/Helpers/DashboardCardInnerErrorView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DashboardCardInnerErrorView: UIStackView {
2424
return retryLabel
2525
}()
2626

27-
convenience init(message: String, retry: Bool) {
27+
convenience init(message: String, canRetry: Bool) {
2828
self.init(arrangedSubviews: [])
2929

3030
errorTitle.text = message
@@ -33,7 +33,7 @@ class DashboardCardInnerErrorView: UIStackView {
3333
axis = .vertical
3434
spacing = Constants.spacing
3535

36-
if retry {
36+
if canRetry {
3737
addArrangedSubview(retryLabel)
3838

3939
isUserInteractionEnabled = true

WordPress/Classes/ViewRelated/Blog/Blog Dashboard/Cards/Posts/PostsCardViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ extension PostsCardViewController: PostsCardView {
122122
}
123123

124124
func showError(message: String, retry: Bool) {
125-
let errorView = DashboardCardInnerErrorView(message: message, retry: retry)
125+
let errorView = DashboardCardInnerErrorView(message: message, canRetry: retry)
126126
errorView.delegate = self
127127
errorView.translatesAutoresizingMaskIntoConstraints = false
128128
tableView.addSubview(withFadeAnimation: errorView)

0 commit comments

Comments
 (0)