Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lspinucci committed Oct 8, 2021
1 parent 64a3bbb commit 4a15a59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ struct GreenCertificateTestDetailVM: ViewModelWithLocalState {
let greenCertificate: GreenCertificate
}

struct configurationState {
static var _state = ["": ["": ""]]
struct ConfigurationState {
static var state = ["": ["": ""]]
}

extension GreenCertificateTestDetailVM {
Expand All @@ -30,7 +30,7 @@ extension GreenCertificateTestDetailVM {
return nil
}
self.greenCertificate = localState.greenCertificate
configurationState._state = state.configuration.eudccExpiration
ConfigurationState.state = state.configuration.eudccExpiration
}
}

Expand Down Expand Up @@ -661,8 +661,8 @@ public enum TestType: String {

func gedValidUntilValue() -> String {
let lan = Locale.current.languageCode ?? "en"
let validUntilValueMolecularTest:String? = configurationState._state[lan]?["molecular_test"]
let validUntilValueQuickTest:String? = configurationState._state[lan]?["rapid_test"]
let validUntilValueMolecularTest:String? = ConfigurationState.state[lan]?["molecular_test"]
let validUntilValueQuickTest:String? = ConfigurationState.state[lan]?["rapid_test"]

switch self {
case .molecularTest:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ struct GreenCertificateVaccineDetailVM: ViewModelWithLocalState {
let greenCertificate: GreenCertificate
}

struct configurationStateVaccine {
static var _state = ["": ["": ""]]
struct ConfigurationStateVaccine {
static var state = ["": ["": ""]]
}

extension GreenCertificateVaccineDetailVM {
Expand All @@ -31,7 +31,7 @@ extension GreenCertificateVaccineDetailVM {
}

self.greenCertificate = localState.greenCertificate
configurationStateVaccine._state = (state?.configuration.eudccExpiration)!
ConfigurationStateVaccine.state = (state?.configuration.eudccExpiration)!
}
}

Expand Down Expand Up @@ -232,8 +232,8 @@ class GreenCertificateVaccineDetailView: UIView, ViewControllerModellableView {
return
}
let lan = Locale.current.languageCode ?? "en"
let validUntilCompleteVaccine = configurationStateVaccine._state[lan]!["vaccine_fully_completed"]
let validUntilnotCompleteVaccine = configurationStateVaccine._state[lan]!["vaccine_first_dose"]
let validUntilCompleteVaccine = ConfigurationStateVaccine.state[lan]!["vaccine_fully_completed"]
let validUntilnotCompleteVaccine = ConfigurationStateVaccine.state[lan]!["vaccine_first_dose"]

if let detailVaccineCertificate = model.greenCertificate.detailVaccineCertificate {
Self.Style.value(self.diseaseVaccine, text: detailVaccineCertificate.disease)
Expand Down

0 comments on commit 4a15a59

Please sign in to comment.