Skip to content

Commit aaf186f

Browse files
committed
Nits: update comments.
1 parent 7b72ab7 commit aaf186f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/AnalyticsHubViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ final class AnalyticsHubViewModel: ObservableObject {
258258
///
259259
private var timeRangeSelection: AnalyticsHubTimeRangeSelection
260260

261-
/// Names of the active plugins on the store.
261+
/// A list of known active plugins on the store.
262262
///
263263
private lazy var activePlugins: [Plugin] = {
264264
let predicate = NSPredicate(format: "siteID == %lld && active == true", siteID)
@@ -570,9 +570,9 @@ private extension AnalyticsHubViewModel {
570570
}
571571
}
572572

573-
/// Helper function that returns `true` in its callback if the provided plugin is active on the store.
573+
/// Helper function that returns `true` in its callback if the provided plugin is active on the store.
574574
///
575-
/// - Parameter plugin: A list of known plugins.
575+
/// - Parameter plugin: Plugin to check.
576576
private func isPluginActive(_ plugin: Plugin) -> Bool {
577577
activePlugins.contains(plugin)
578578
}

WooCommerce/Classes/ViewRelated/Products/Filters/FilterProductListViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ extension FilterProductListViewModel.ProductListFilter {
313313
promoteUrl: WooConstants.URLs.compositeProductsExtension.asURL())]
314314
}
315315

316-
/// Fetches the active plugins for the provided site IDs using a `ResultsController`
316+
/// Fetches the active known plugins for the provided site IDs using a `ResultsController`
317317
///
318318
private func fetchActivePlugins(siteID: Int64, storageManager: StorageManagerType) -> [Plugin] {
319319
let predicate = \StorageSystemPlugin.siteID == siteID && \StorageSystemPlugin.active == true

0 commit comments

Comments
 (0)