chore(ci): fix swiftformat lint
parent
483c0e4cea
commit
2ca7c2629c
|
|
@ -8,9 +8,8 @@ enum GatewayAutostartPolicy {
|
||||||
static func shouldEnsureLaunchAgent(
|
static func shouldEnsureLaunchAgent(
|
||||||
mode: AppState.ConnectionMode,
|
mode: AppState.ConnectionMode,
|
||||||
paused: Bool,
|
paused: Bool,
|
||||||
attachExistingOnly: Bool,
|
attachExistingOnly: Bool) -> Bool
|
||||||
) -> Bool
|
|
||||||
{
|
{
|
||||||
shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly
|
self.shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -352,12 +352,11 @@ final class GatewayDiscoveryModel {
|
||||||
|
|
||||||
nonisolated private static func mergeLocalIdentity(
|
nonisolated private static func mergeLocalIdentity(
|
||||||
fast: LocalIdentity,
|
fast: LocalIdentity,
|
||||||
slow: LocalIdentity
|
slow: LocalIdentity) -> LocalIdentity
|
||||||
) -> LocalIdentity {
|
{
|
||||||
LocalIdentity(
|
LocalIdentity(
|
||||||
hostTokens: fast.hostTokens.union(slow.hostTokens),
|
hostTokens: fast.hostTokens.union(slow.hostTokens),
|
||||||
displayTokens: fast.displayTokens.union(slow.displayTokens)
|
displayTokens: fast.displayTokens.union(slow.displayTokens))
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nonisolated private static func buildLocalIdentityFast() -> LocalIdentity {
|
nonisolated private static func buildLocalIdentityFast() -> LocalIdentity {
|
||||||
|
|
|
||||||
|
|
@ -99,11 +99,11 @@ struct OnboardingView: View {
|
||||||
case .remote:
|
case .remote:
|
||||||
// Remote setup doesn't need local gateway/CLI/workspace setup pages,
|
// Remote setup doesn't need local gateway/CLI/workspace setup pages,
|
||||||
// and WhatsApp/Telegram setup is optional.
|
// 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:
|
case .unconfigured:
|
||||||
return hasIdentity ? [0, 1, 9] : [0, 1, 8, 9]
|
hasIdentity ? [0, 1, 9] : [0, 1, 8, 9]
|
||||||
case .local:
|
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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue