Skip to content

Commit

Permalink
Merge branch 'task/20783-cell-view-model-impl' into task/20783-prepub…
Browse files Browse the repository at this point in the history
…lishing-no-social-connection
  • Loading branch information
dvdchr committed Jul 12, 2023
2 parents bd6c671 + 2aa0907 commit 41d836a
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 41d836a

Please sign in to comment.