From 4970af6bb982b4ec131627eda7ba1d3e2b927575 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 14 Dec 2025 05:15:39 +0000 Subject: [PATCH] fix(macos): satisfy swiftformat --- apps/macos/Sources/Clawdis/AnthropicOAuth.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/macos/Sources/Clawdis/AnthropicOAuth.swift b/apps/macos/Sources/Clawdis/AnthropicOAuth.swift index 4a47ac2e1..48a605cf7 100644 --- a/apps/macos/Sources/Clawdis/AnthropicOAuth.swift +++ b/apps/macos/Sources/Clawdis/AnthropicOAuth.swift @@ -166,14 +166,16 @@ enum PiOAuthStore { attributes: [.posixPermissions: 0o700]) let url = self.oauthURL() - let data = try JSONSerialization.data(withJSONObject: storage, options: [.prettyPrinted, .sortedKeys]) + let data = try JSONSerialization.data( + withJSONObject: storage, + options: [.prettyPrinted, .sortedKeys]) try data.write(to: url, options: [.atomic]) try FileManager.default.setAttributes([.posixPermissions: 0o600], ofItemAtPath: url.path) } } extension Data { - fileprivate func base64URLEncodedString() -> String { + private func base64URLEncodedString() -> String { self.base64EncodedString() .replacingOccurrences(of: "+", with: "-") .replacingOccurrences(of: "/", with: "_")