style(macos): fix swiftformat lint
This commit is contained in:
@@ -432,11 +432,11 @@ extension ChannelsSettings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func resolveChannelDetailTitle(_ id: String) -> String {
|
private func resolveChannelDetailTitle(_ id: String) -> String {
|
||||||
return self.store.resolveChannelDetailLabel(id)
|
self.store.resolveChannelDetailLabel(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func resolveChannelSystemImage(_ id: String) -> String {
|
private func resolveChannelSystemImage(_ id: String) -> String {
|
||||||
return self.store.resolveChannelSystemImage(id)
|
self.store.resolveChannelSystemImage(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func channelStatusDictionary(_ id: String) -> [String: AnyCodable]? {
|
private func channelStatusDictionary(_ id: String) -> [String: AnyCodable]? {
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ final class ChannelsStore {
|
|||||||
|
|
||||||
func orderedChannelIds() -> [String] {
|
func orderedChannelIds() -> [String] {
|
||||||
if let meta = self.snapshot?.channelMeta, !meta.isEmpty {
|
if let meta = self.snapshot?.channelMeta, !meta.isEmpty {
|
||||||
return meta.map { $0.id }
|
return meta.map(\.id)
|
||||||
}
|
}
|
||||||
return self.snapshot?.channelOrder ?? []
|
return self.snapshot?.channelOrder ?? []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -408,8 +408,7 @@ extension Request: Codable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Shared transport settings
|
// Shared transport settings
|
||||||
public let controlSocketPath =
|
public let controlSocketPath = FileManager()
|
||||||
FileManager()
|
|
||||||
.homeDirectoryForCurrentUser
|
.homeDirectoryForCurrentUser
|
||||||
.appendingPathComponent("Library/Application Support/clawdbot/control.sock")
|
.appendingPathComponent("Library/Application Support/clawdbot/control.sock")
|
||||||
.path
|
.path
|
||||||
|
|||||||
@@ -365,7 +365,8 @@ actor GatewayWizardClient {
|
|||||||
}
|
}
|
||||||
let payload = payloadParts.joined(separator: "|")
|
let payload = payloadParts.joined(separator: "|")
|
||||||
if let signature = DeviceIdentityStore.signPayload(payload, identity: identity),
|
if let signature = DeviceIdentityStore.signPayload(payload, identity: identity),
|
||||||
let publicKey = DeviceIdentityStore.publicKeyBase64Url(identity) {
|
let publicKey = DeviceIdentityStore.publicKeyBase64Url(identity)
|
||||||
|
{
|
||||||
var device: [String: ProtoAnyCodable] = [
|
var device: [String: ProtoAnyCodable] = [
|
||||||
"id": ProtoAnyCodable(identity.deviceId),
|
"id": ProtoAnyCodable(identity.deviceId),
|
||||||
"publicKey": ProtoAnyCodable(publicKey),
|
"publicKey": ProtoAnyCodable(publicKey),
|
||||||
@@ -413,7 +414,8 @@ actor GatewayWizardClient {
|
|||||||
let frame = try decodeFrame(message)
|
let frame = try decodeFrame(message)
|
||||||
if case let .event(evt) = frame, evt.event == "connect.challenge" {
|
if case let .event(evt) = frame, evt.event == "connect.challenge" {
|
||||||
if let payload = evt.payload?.value as? [String: ProtoAnyCodable],
|
if let payload = evt.payload?.value as? [String: ProtoAnyCodable],
|
||||||
let nonce = payload["nonce"]?.value as? String {
|
let nonce = payload["nonce"]?.value as? String
|
||||||
|
{
|
||||||
return nonce
|
return nonce
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user