Skip to content

Commit

Permalink
Remove redundant cancelling of cancellable flow subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
bpedryc committed Jun 1, 2023
1 parent cc5ac3f commit f1cbc9f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ios/KaMPKitiOS/BreedListScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ class ObservableBreedModel: ObservableObject {
}

func deactivate() {
cancellables.forEach { $0.cancel() }
cancellables.removeAll()

viewModel?.clear()
viewModel = nil
}

func onBreedFavorite(_ breed: Breed) {
Expand Down

0 comments on commit f1cbc9f

Please sign in to comment.