From 9577d27a92a75654a2ae9f63c6dc14bc1c97e69d Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Tue, 26 Jan 2021 20:38:32 -0800 Subject: [PATCH] Fix warnings --- .../ViewModels/View Models/CollectionItemsViewModel.swift | 2 -- .../Sources/ViewModels/View Models/NewStatusViewModel.swift | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ViewModels/Sources/ViewModels/View Models/CollectionItemsViewModel.swift b/ViewModels/Sources/ViewModels/View Models/CollectionItemsViewModel.swift index 0ba67ff..799f408 100644 --- a/ViewModels/Sources/ViewModels/View Models/CollectionItemsViewModel.swift +++ b/ViewModels/Sources/ViewModels/View Models/CollectionItemsViewModel.swift @@ -331,8 +331,6 @@ extension CollectionItemsViewModel: CollectionViewModel { .assignErrorsToAlertItem(to: \.alertItem, on: self) .sink { _ in } .store(in: &cancellables) - default: - break } } } diff --git a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift index 4d61790..c71d15e 100644 --- a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift +++ b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift @@ -23,6 +23,7 @@ public final class NewStatusViewModel: ObservableObject { private let compositionEventsSubject = PassthroughSubject() private var cancellables = Set() + // swiftlint:disable:next function_body_length public init(allIdentitiesService: AllIdentitiesService, identityContext: IdentityContext, environment: AppEnvironment,