Skip to content

Commit e979a61

Browse files
committed
Fix formatting
1 parent 49adb9d commit e979a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAI/Sources/GenerativeModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public final class GenerativeModel: Sendable {
175175
}
176176

177177
// If all candidates are empty (contain no information that a developer could act on) then throw
178-
if response.candidates.allSatisfy { $0.isEmpty } {
178+
if response.candidates.allSatisfy({ $0.isEmpty }) {
179179
throw GenerateContentError.internalError(underlying: InvalidCandidateError.emptyContent(
180180
underlyingError: Candidate.EmptyContentError()
181181
))
@@ -246,7 +246,7 @@ public final class GenerativeModel: Sendable {
246246

247247
// Skip returning the response if all candidates are empty (i.e., they contain no
248248
// information that a developer could act on).
249-
if response.candidates.allSatisfy { $0.isEmpty } {
249+
if response.candidates.allSatisfy({ $0.isEmpty }) {
250250
AILog.log(
251251
level: .debug,
252252
code: .generateContentResponseNoCandidates,

0 commit comments

Comments
 (0)