From 2ca7c2629c2e0820f616dbf8a339daf35f1d1aad Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 20 Dec 2025 19:48:53 +0100 Subject: [PATCH] chore(ci): fix swiftformat lint --- apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift | 5 ++--- apps/macos/Sources/Clawdis/GatewayDiscoveryModel.swift | 7 +++---- apps/macos/Sources/Clawdis/Onboarding.swift | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift b/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift index 9c802581d..0df638418 100644 --- a/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift +++ b/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift @@ -8,9 +8,8 @@ enum GatewayAutostartPolicy { static func shouldEnsureLaunchAgent( mode: AppState.ConnectionMode, paused: Bool, - attachExistingOnly: Bool, - ) -> Bool + attachExistingOnly: Bool) -> Bool { - shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly + self.shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly } } diff --git a/apps/macos/Sources/Clawdis/GatewayDiscoveryModel.swift b/apps/macos/Sources/Clawdis/GatewayDiscoveryModel.swift index 8b08e1ec5..768f7e36f 100644 --- a/apps/macos/Sources/Clawdis/GatewayDiscoveryModel.swift +++ b/apps/macos/Sources/Clawdis/GatewayDiscoveryModel.swift @@ -352,12 +352,11 @@ final class GatewayDiscoveryModel { nonisolated private static func mergeLocalIdentity( fast: LocalIdentity, - slow: LocalIdentity - ) -> LocalIdentity { + slow: LocalIdentity) -> LocalIdentity + { LocalIdentity( hostTokens: fast.hostTokens.union(slow.hostTokens), - displayTokens: fast.displayTokens.union(slow.displayTokens) - ) + displayTokens: fast.displayTokens.union(slow.displayTokens)) } nonisolated private static func buildLocalIdentityFast() -> LocalIdentity { diff --git a/apps/macos/Sources/Clawdis/Onboarding.swift b/apps/macos/Sources/Clawdis/Onboarding.swift index ab8156b61..e7a1cf54e 100644 --- a/apps/macos/Sources/Clawdis/Onboarding.swift +++ b/apps/macos/Sources/Clawdis/Onboarding.swift @@ -99,11 +99,11 @@ struct OnboardingView: View { case .remote: // Remote setup doesn't need local gateway/CLI/workspace setup pages, // and WhatsApp/Telegram setup is optional. - return hasIdentity ? [0, 1, 5, 9] : [0, 1, 5, 8, 9] + hasIdentity ? [0, 1, 5, 9] : [0, 1, 5, 8, 9] case .unconfigured: - return hasIdentity ? [0, 1, 9] : [0, 1, 8, 9] + hasIdentity ? [0, 1, 9] : [0, 1, 8, 9] case .local: - return hasIdentity ? [0, 1, 2, 5, 6, 9] : [0, 1, 2, 5, 6, 8, 9] + hasIdentity ? [0, 1, 2, 5, 6, 9] : [0, 1, 2, 5, 6, 8, 9] } }