mirror of
https://github.com/clawdbot/clawdbot.git
synced 2026-02-01 11:57:48 +01:00
iOS: satisfy SwiftFormat in bridge discovery
This commit is contained in:
@@ -107,7 +107,7 @@ final class BridgeDiscoveryModel {
|
||||
|
||||
private func recomputeBridges() {
|
||||
let next = self.bridgesByDomain.values
|
||||
.flatMap { $0 }
|
||||
.flatMap(\.self)
|
||||
.sorted { $0.name.localizedCaseInsensitiveCompare($1.name) == .orderedAscending }
|
||||
|
||||
let nextIDs = Set(next.map(\.stableID))
|
||||
@@ -147,12 +147,12 @@ final class BridgeDiscoveryModel {
|
||||
}
|
||||
}
|
||||
|
||||
if states.contains(where: { if case .ready = $0 { return true } else { return false } }) {
|
||||
if states.contains(where: { if case .ready = $0 { true } else { false } }) {
|
||||
self.statusText = "Searching…"
|
||||
return
|
||||
}
|
||||
|
||||
if states.contains(where: { if case .setup = $0 { return true } else { return false } }) {
|
||||
if states.contains(where: { if case .setup = $0 { true } else { false } }) {
|
||||
self.statusText = "Setup"
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user