File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Swift/Source/Codable/third_party
third_party/FirestoreEncoder Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extension Firestore {
36
36
/// API can work with.
37
37
public func encode< T: Encodable > ( _ value: T ) throws -> [ String : Any ] {
38
38
// 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 {
40
40
throw FirestoreEncodingError . encodingIsNotSupported
41
41
}
42
42
guard let topLevel = try _FirestoreEncoder ( ) . box_ ( value) else {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extension Firestore {
36
36
/// API can work with.
37
37
public func encode< T: Encodable > ( _ value: T ) throws -> [ String : Any ] {
38
38
// 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 {
40
40
throw FirestoreEncodingError . encodingIsNotSupported
41
41
}
42
42
guard let topLevel = try _FirestoreEncoder ( ) . box_ ( value) else {
You can’t perform that action at this time.
0 commit comments