Skip to content

Commit eb72cf7

Browse files
committed
Rename cancellables to subscriptions based on naming convention.
1 parent 4112a20 commit eb72cf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/DashboardViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ final class DashboardViewController: UIViewController {
8888
return view
8989
}()
9090

91-
private var cancellables = Set<AnyCancellable>()
91+
private var subscriptions = Set<AnyCancellable>()
9292

9393
// MARK: View Lifecycle
9494

@@ -423,7 +423,7 @@ private extension DashboardViewController {
423423
guard let self = self else { return }
424424
self.updateUI(site: site)
425425
self.reloadData(forced: true)
426-
}.store(in: &cancellables)
426+
}.store(in: &subscriptions)
427427
}
428428

429429
func observeBottomJetpackBenefitsBannerVisibilityUpdates() {
@@ -447,7 +447,7 @@ private extension DashboardViewController {
447447
self.updateJetpackBenefitsBannerVisibility(isBannerVisible: shouldShowJetpackBenefitsBanner, contentView: contentView)
448448
}
449449
ServiceLocator.stores.dispatch(action)
450-
}.store(in: &cancellables)
450+
}.store(in: &subscriptions)
451451
}
452452

453453
func observeNavigationBarHeightForStoreNameLabelVisibility() {
@@ -462,7 +462,7 @@ private extension DashboardViewController {
462462
}
463463
self.storeNameLabel.isHidden = navigationBarHeight <= Constants.collapsedNavigationBarHeight
464464
})
465-
.store(in: &cancellables)
465+
.store(in: &subscriptions)
466466
}
467467
}
468468

0 commit comments

Comments
 (0)