diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-15 00:11:21 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-15 00:19:39 +0100 |
| commit | fa681bfcf5cbfcc711fb0ab10f3fd74ac83bf18c (patch) | |
| tree | 2dce2e95bab08f773246b450ac50227f8e8f57da /Map/Business/Stage.swift | |
| parent | 0d5e6636405dbe332c33c0fb82c7ccccb20f96cb (diff) | |
Apply formatting rules
Diffstat (limited to 'Map/Business/Stage.swift')
| -rw-r--r-- | Map/Business/Stage.swift | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Map/Business/Stage.swift b/Map/Business/Stage.swift index ebee17f..4962f8f 100644 --- a/Map/Business/Stage.swift +++ b/Map/Business/Stage.swift @@ -153,8 +153,7 @@ struct Stage: Codable { if let customStagesData = UserDefaults.standard.data(forKey: "customStages"), let customStagesList = try? JSONDecoder().decode( [CustomStage].self, from: customStagesData), - let customStage = customStagesList.first(where: { $0.id == uuid }) - { + let customStage = customStagesList.first(where: { $0.id == uuid }) { return customStage.stage } return stages(.behavior) // fallback @@ -207,8 +206,7 @@ struct Stage: Codable { if let customStagesData = UserDefaults.standard.data(forKey: "customStages"), let customStagesList = try? JSONDecoder().decode( [CustomStage].self, from: customStagesData), - let customStage = customStagesList.first(where: { $0.id == uuid }) - { + let customStage = customStagesList.first(where: { $0.id == uuid }) { return customStage.name } return String(localized: "stage_type.behavior") // fallback @@ -273,13 +271,12 @@ enum StageType: Identifiable, Equatable { static let properties: [StageType] = [ .market, .knowledgeManagement, .marketPerception, .userPerception, .perceptionInIndustry, .focusOfValue, .understanding, .comparison, .failure, - .marketAction, .efficiency, .decisionDrivers, + .marketAction, .efficiency, .decisionDrivers ] static var customStages: [StageType] { if let customStagesData = UserDefaults.standard.data(forKey: "customStages"), - let customStagesList = try? JSONDecoder().decode([CustomStage].self, from: customStagesData) - { + let customStagesList = try? JSONDecoder().decode([CustomStage].self, from: customStagesData) { return customStagesList.map { .custom($0.id) } } return [] |