style: swiftformat macos swift files

This commit is contained in:
Peter Steinberger
2026-01-13 05:10:04 +00:00
parent 8eb1c76337
commit 9308762d0b
3 changed files with 9 additions and 14 deletions

View File

@@ -149,8 +149,7 @@ final class OnboardingWizardModel {
onboardingWizardLogger.error("wizard step decode failed")
}
if res.done { self.currentStep = nil }
if res.done || status == "done" || status == "cancelled" || status == "error"
{
if res.done || status == "done" || status == "cancelled" || status == "error" {
self.sessionId = nil
}
}

View File

@@ -22,17 +22,17 @@ struct WizardCliOptions {
case "--json":
opts.json = true
case "--url":
opts.url = nextValue(args, index: &i)
opts.url = self.nextValue(args, index: &i)
case "--token":
opts.token = nextValue(args, index: &i)
opts.token = self.nextValue(args, index: &i)
case "--password":
opts.password = nextValue(args, index: &i)
opts.password = self.nextValue(args, index: &i)
case "--mode":
if let value = nextValue(args, index: &i) {
opts.mode = value
}
case "--workspace":
opts.workspace = nextValue(args, index: &i)
opts.workspace = self.nextValue(args, index: &i)
default:
break
}

View File

@@ -19,22 +19,19 @@ import Testing
error: "gateway connect failed",
elapsedMs: 12,
bot: nil,
webhook: nil
),
lastProbeAt: 0
),
webhook: nil),
lastProbeAt: 0),
],
providerOrder: ["whatsapp"],
providerLabels: ["whatsapp": "WhatsApp"],
heartbeatSeconds: 60,
sessions: .init(path: "/tmp/sessions.json", count: 0, recent: [])
)
sessions: .init(path: "/tmp/sessions.json", count: 0, recent: []))
let store = HealthStore.shared
store.__setSnapshotForTest(snap, lastError: nil)
switch store.state {
case .degraded(let message):
case let .degraded(message):
#expect(!message.isEmpty)
default:
Issue.record("Expected degraded state when probe fails for linked provider")
@@ -43,4 +40,3 @@ import Testing
#expect(store.summaryLine.contains("probe degraded"))
}
}