style(macos): swiftformat sources

This commit is contained in:
Peter Steinberger
2025-12-19 17:52:26 +01:00
parent 47a1774dc0
commit 8c6a592523
13 changed files with 57 additions and 42 deletions

View File

@@ -5,8 +5,8 @@ import Foundation
import OSLog
import UserNotifications
struct NodePairingReconcilePolicy {
static let activeIntervalMs: UInt64 = 15_000
enum NodePairingReconcilePolicy {
static let activeIntervalMs: UInt64 = 15000
static let resyncDelayMs: UInt64 = 250
static func shouldPoll(pendingCount: Int, isPresenting: Bool) -> Bool {
@@ -522,7 +522,7 @@ final class NodePairingApprovalPrompter {
defer { model.stop() }
let deadline = Date().addingTimeInterval(5.0)
while model.masters.isEmpty && Date() < deadline {
while model.masters.isEmpty, Date() < deadline {
try? await Task.sleep(nanoseconds: 200_000_000)
}