Commit 23ef8ef9e6

23ef8ef9e632b205675b0fda8200635201d2a889

parent: bb18197860

Unsigned

cmc <hello@cleberg.net> · 2026-07-20 21:32 UTC

fix: extract nested ternary in batch quickStatus

Closes the last swift:S3358 in the new-code period. The hasChanges
branch nested a severity check inside the impactClassification ternary;
split into if/else. No behavior change.

Layout: unified · split

DomainDig/DomainViewModel.swift +5 −1
@@ -2975,7 +2975,11 @@ final class DomainViewModel {
2975 let riskAssessment = entry?.changeSummary?.riskAssessment ?? DomainInsightEngine.analyze(snapshot: payload.snapshot).riskAssessment 2975 let riskAssessment = entry?.changeSummary?.riskAssessment ?? DomainInsightEngine.analyze(snapshot: payload.snapshot).riskAssessment
2976 let quickStatus: String 2976 let quickStatus: String
2977 if entry?.changeSummary?.hasChanges == true { 2977 if entry?.changeSummary?.hasChanges == true {
2978 quickStatus = entry?.changeSummary?.impactClassification == .critical ? "Critical" : (entry?.changeSummary?.severity == .high ? "High" : "Changed") 2978 if entry?.changeSummary?.impactClassification == .critical {
2979 quickStatus = "Critical"
2980 } else {
2981 quickStatus = entry?.changeSummary?.severity == .high ? "High" : "Changed"
2982 }
2979 } else if certificateWarningLevel != .none { 2983 } else if certificateWarningLevel != .none {
2980 quickStatus = certificateWarningLevel == .critical ? "Critical" : "Warning" 2984 quickStatus = certificateWarningLevel == .critical ? "Critical" : "Warning"
2981 } else if riskAssessment.level == .high { 2985 } else if riskAssessment.level == .high {