Skip to content

Commit 3909666

Browse files
morganchen12wilhuff
authored andcommitted
Fix token fetch not invoking callback for unchanged token (#3251)
1 parent 34023c3 commit 3909666

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firestore/Swift/Source/Codable/third_party/FirestoreEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extension Firestore {
3636
/// API can work with.
3737
public func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
3838
// DocumentReference and FieldValue cannot be encoded directly.
39-
guard T.self != DocumentReference.self && T.self != FieldValue.self else {
39+
guard T.self != DocumentReference.self, T.self != FieldValue.self else {
4040
throw FirestoreEncodingError.encodingIsNotSupported
4141
}
4242
guard let topLevel = try _FirestoreEncoder().box_(value) else {

Firestore/third_party/FirestoreEncoder/FirestoreEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extension Firestore {
3636
/// API can work with.
3737
public func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
3838
// DocumentReference and FieldValue cannot be encoded directly.
39-
guard T.self != DocumentReference.self && T.self != FieldValue.self else {
39+
guard T.self != DocumentReference.self, T.self != FieldValue.self else {
4040
throw FirestoreEncodingError.encodingIsNotSupported
4141
}
4242
guard let topLevel = try _FirestoreEncoder().box_(value) else {

0 commit comments

Comments
 (0)