Skip to content

Commit cd7312a

Browse files
committed
formatting
1 parent e80fade commit cd7312a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

FirebaseAI/Sources/GenerativeAIService.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,13 @@ struct GenerativeAIService {
234234
return await appCheck.getToken(forcingRefresh: false)
235235
}
236236

237-
private func getLimitedUseAppCheckToken(appCheck: AppCheckInterop) async -> FIRAppCheckTokenResultInterop? {
237+
private func getLimitedUseAppCheckToken(appCheck: AppCheckInterop) async
238+
-> FIRAppCheckTokenResultInterop? {
238239
// At the moment, `await` doesn’t get along with Objective-C’s optional protocol methods.
239-
await withCheckedContinuation { (continuation: CheckedContinuation<FIRAppCheckTokenResultInterop?, Never>) in
240+
await withCheckedContinuation { (continuation: CheckedContinuation<
241+
FIRAppCheckTokenResultInterop?,
242+
Never
243+
>) in
240244
guard
241245
useLimitedUseAppCheckTokens,
242246
// `getLimitedUseToken(completion:)` is an optional protocol method. Optional binding

FirebaseAI/Tests/Unit/Fakes/AppCheckInteropFake.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class AppCheckInteropFake: NSObject, AppCheckInterop {
5252
fatalError("\(#function) not implemented.")
5353
}
5454

55-
private class AppCheckTokenResultInteropFake: NSObject, FIRAppCheckTokenResultInterop, @unchecked Sendable {
55+
private class AppCheckTokenResultInteropFake: NSObject, FIRAppCheckTokenResultInterop,
56+
@unchecked Sendable {
5657
let token: String
5758
let error: Error?
5859

0 commit comments

Comments
 (0)