chore(ci): fix biome + swiftformat lint
This commit is contained in:
committed by
Peter Steinberger
parent
7d51bf0eb0
commit
483c0e4cea
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = """
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user