Skip to content

Commit abb99fc

Browse files
committed
style
1 parent 0436bea commit abb99fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FirebaseAI/Sources/GenerateContentResponse.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ extension GenerateContentResponse.UsageMetadata: Decodable {
357357
public init(from decoder: any Decoder) throws {
358358
let container = try decoder.container(keyedBy: CodingKeys.self)
359359
promptTokenCount = try container.decodeIfPresent(Int.self, forKey: .promptTokenCount) ?? 0
360-
cachedContentTokenCount = try container.decodeIfPresent(Int.self, forKey: .cacheContentTokenCount) ?? 0
360+
cachedContentTokenCount = try container.decodeIfPresent(
361+
Int.self,
362+
forKey: .cacheContentTokenCount
363+
) ?? 0
361364
candidatesTokenCount =
362365
try container.decodeIfPresent(Int.self, forKey: .candidatesTokenCount) ?? 0
363366
thoughtsTokenCount = try container.decodeIfPresent(Int.self, forKey: .thoughtsTokenCount) ?? 0

0 commit comments

Comments
 (0)