Skip to content

Commit 7cf4247

Browse files
Renamed variable to avoid symbol resolution ambiguity with Xcode 12.4 (#9438)
1 parent b3bbea9 commit 7cf4247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firestore/Swift/Source/Codable/DocumentSnapshot+ReadDecodable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public extension DocumentSnapshot {
3636
func data<T: Decodable>(as type: T.Type,
3737
with serverTimestampBehavior: ServerTimestampBehavior = .none,
3838
decoder: Firestore.Decoder = .init()) throws -> T {
39-
let data: Any = data(with: serverTimestampBehavior) ?? NSNull()
40-
return try decoder.decode(T.self, from: data, in: reference)
39+
let d: Any = data(with: serverTimestampBehavior) ?? NSNull()
40+
return try decoder.decode(T.self, from: d, in: reference)
4141
}
4242
}

0 commit comments

Comments
 (0)