From c74f292cbd8384ee7d70a87d8c07fd427e92692b Mon Sep 17 00:00:00 2001 From: Ian Dundas <1131967+iandundas@users.noreply.github.com> Date: Fri, 3 Mar 2023 10:46:17 +0100 Subject: [PATCH] lint --- .../Interface/Holder/Dashboard/HolderDashboardViewModel.swift | 3 +-- .../Dashboard/Logic/HolderDashboardViewModel+Model.swift | 4 ++-- .../Logic/HolderDashboardViewModel+makeVCCards.swift | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewModel.swift b/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewModel.swift index d0878f1b5..6dff115be 100644 --- a/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewModel.swift +++ b/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewModel.swift @@ -93,12 +93,11 @@ final class HolderDashboardViewModel: HolderDashboardViewModelType { /// that allows us to use a `didSet{}` to /// get a callback if any of them are mutated. struct State: Equatable { - enum StrippenRefresherFailMissingCredentialsError: Error { + enum StrippenRefresherFailMissingCredentialsError: Error { // swiftlint:disable:this type_name case noInternet case otherFailureFirstOccurence, otherFailureSubsequentOccurence } - var qrCards: [QRCard] var expiredGreenCards: [ExpiredQR] var blockedEventItems: [RemovedEventItem] diff --git a/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+Model.swift b/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+Model.swift index 2d34a1fb8..91241c617 100644 --- a/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+Model.swift +++ b/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+Model.swift @@ -133,8 +133,8 @@ extension HolderDashboardViewModel { // DCCs and CTBs should be grouped when the GreenCards are sorted: let regionModifier: Double = { switch self.region { - case .europeanUnion: return 1 - case .netherlands: return 0 + case .europeanUnion: return 1 + case .netherlands: return 0 } }() diff --git a/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+makeVCCards.swift b/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+makeVCCards.swift index 228855cec..0da046b7b 100644 --- a/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+makeVCCards.swift +++ b/Sources/CTR/Interface/Holder/Dashboard/Logic/HolderDashboardViewModel+makeVCCards.swift @@ -4,6 +4,7 @@ * * SPDX-License-Identifier: EUPL-1.2 */ +// swiftlint:disable file_length import Foundation import Shared