From 05197a21840141bba59e25d6a05679a56cbaf0c4 Mon Sep 17 00:00:00 2001 From: actions-user <65916846+actions-user@users.noreply.github.com> Date: Sat, 28 Sep 2024 06:06:13 +0000 Subject: [PATCH 1/2] Run SwiftFormat --- Features/Sources/APIClient/APIClient.swift | 4 ++-- Features/Sources/Settings/String.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Features/Sources/APIClient/APIClient.swift b/Features/Sources/APIClient/APIClient.swift index b060333..d9752c5 100644 --- a/Features/Sources/APIClient/APIClient.swift +++ b/Features/Sources/APIClient/APIClient.swift @@ -1,8 +1,8 @@ import Dependencies import DependenciesMacros import Foundation -import Models import IssueReporting +import Models @DependencyClient public struct APIClient: Sendable { @@ -23,7 +23,7 @@ public extension DependencyValues { } extension APIClient: DependencyKey { - nonisolated(unsafe) public private(set) static var apiKey: APIKey? + public private(set) nonisolated(unsafe) static var apiKey: APIKey? public static let liveValue = APIClient( apod: { diff --git a/Features/Sources/Settings/String.swift b/Features/Sources/Settings/String.swift index e33f5d7..e0ec7d7 100644 --- a/Features/Sources/Settings/String.swift +++ b/Features/Sources/Settings/String.swift @@ -1,6 +1,6 @@ extension String { var masked: String? { - guard let first = self.first else { + guard let first = first else { return nil } return "\(first)***" From 9904377b62267301dee9053c2d7cfc8670194376 Mon Sep 17 00:00:00 2001 From: Yunosuke Sakai Date: Sat, 28 Sep 2024 15:10:29 +0900 Subject: [PATCH 2/2] remove unnecessary code --- Features/Sources/Settings/String.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Features/Sources/Settings/String.swift b/Features/Sources/Settings/String.swift index e0ec7d7..e864227 100644 --- a/Features/Sources/Settings/String.swift +++ b/Features/Sources/Settings/String.swift @@ -1,6 +1,6 @@ extension String { var masked: String? { - guard let first = first else { + guard let first else { return nil } return "\(first)***"