diff --git a/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift b/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift index 50f194589..9c802581d 100644 --- a/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift +++ b/apps/macos/Sources/Clawdis/GatewayAutostartPolicy.swift @@ -8,9 +8,9 @@ enum GatewayAutostartPolicy { static func shouldEnsureLaunchAgent( mode: AppState.ConnectionMode, paused: Bool, - attachExistingOnly: Bool - ) -> Bool { + attachExistingOnly: Bool, + ) -> Bool + { shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly } } - diff --git a/apps/macos/Sources/Clawdis/GatewayLaunchAgentManager.swift b/apps/macos/Sources/Clawdis/GatewayLaunchAgentManager.swift index bbcdaa083..634d25806 100644 --- a/apps/macos/Sources/Clawdis/GatewayLaunchAgentManager.swift +++ b/apps/macos/Sources/Clawdis/GatewayLaunchAgentManager.swift @@ -50,9 +50,8 @@ enum GatewayLaunchAgentManager { private static func writePlist(bundlePath: String, port: Int) { let gatewayBin = self.gatewayExecutablePath(bundlePath: bundlePath) let relayDir = self.relayDir(bundlePath: bundlePath) - let preferredPath = - ([relayDir] + CommandResolver.preferredPaths()) - .joined(separator: ":") + let preferredPath = ([relayDir] + CommandResolver.preferredPaths()) + .joined(separator: ":") let plist = """ diff --git a/apps/macos/Sources/Clawdis/SkillsSettings.swift b/apps/macos/Sources/Clawdis/SkillsSettings.swift index 6cb332d81..a1555350d 100644 --- a/apps/macos/Sources/Clawdis/SkillsSettings.swift +++ b/apps/macos/Sources/Clawdis/SkillsSettings.swift @@ -83,7 +83,7 @@ struct SkillsSettings: View { isPrimary: isPrimary) }) } - if !self.model.skills.isEmpty && self.filteredSkills.isEmpty { + if !self.model.skills.isEmpty, self.filteredSkills.isEmpty { Text("No skills match this filter.") .font(.callout) .foregroundStyle(.secondary) @@ -143,13 +143,13 @@ private enum SkillsFilter: String, CaseIterable, Identifiable { var title: String { switch self { case .all: - return "All" + "All" case .ready: - return "Ready" + "Ready" case .needsSetup: - return "Needs Setup" + "Needs Setup" case .disabled: - return "Disabled" + "Disabled" } } } @@ -210,15 +210,15 @@ private struct SkillRow: View { private var sourceLabel: String { switch self.skill.source { case "clawdis-bundled": - return "Bundled" + "Bundled" case "clawdis-managed": - return "Managed" + "Managed" case "clawdis-workspace": - return "Workspace" + "Workspace" case "clawdis-extra": - return "Extra" + "Extra" default: - return self.skill.source + self.skill.source } }