diff --git a/WordPress/Classes/ViewRelated/Post/PrepublishingAutoSharingView.swift b/WordPress/Classes/ViewRelated/Post/PrepublishingAutoSharingView.swift index f43c959b9d4d..2df37cec998c 100644 --- a/WordPress/Classes/ViewRelated/Post/PrepublishingAutoSharingView.swift +++ b/WordPress/Classes/ViewRelated/Post/PrepublishingAutoSharingView.swift @@ -92,15 +92,11 @@ struct PrepublishingAutoSharingViewModel { // MARK: Computed Properties var enabledConnectionsCount: Int { - services.reduce(0) { partialResult, service in - return partialResult + service.enabledConnections.count - } + services.reduce(0) { $0 + $1.enabledConnections.count } } var totalConnectionsCount: Int { - services.reduce(0) { partialResult, service in - return partialResult + service.connections.count - } + services.reduce(0) { $0 + $1.connections.count } } var showsWarning: Bool {