style: format macos sources

This commit is contained in:
Peter Steinberger
2025-12-24 17:47:35 +01:00
parent bd223606b1
commit 131a9aa1ac
4 changed files with 14 additions and 13 deletions

View File

@@ -32,9 +32,9 @@ struct TailscaleIntegrationSection: View {
let isPaused: Bool
@Environment(TailscaleService.self) private var tailscaleService
#if DEBUG
#if DEBUG
private var testingService: TailscaleService?
#endif
#endif
@State private var hasLoaded = false
@State private var tailscaleMode: GatewayTailscaleMode = .off
@@ -47,17 +47,17 @@ struct TailscaleIntegrationSection: View {
init(connectionMode: AppState.ConnectionMode, isPaused: Bool) {
self.connectionMode = connectionMode
self.isPaused = isPaused
#if DEBUG
#if DEBUG
self.testingService = nil
#endif
#endif
}
private var effectiveService: TailscaleService {
#if DEBUG
#if DEBUG
return self.testingService ?? self.tailscaleService
#else
#else
return self.tailscaleService
#endif
#endif
}
var body: some View {