File tree 2 files changed +3
-5
lines changed
Sources/FirebaseFirestore 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ internal struct FirestoreDataConverter {
108
108
}
109
109
110
110
return firebase. firestore. FieldValue. Map ( map)
111
- case is firebase . firestore . FieldValue :
112
- return field as! firebase . firestore . FieldValue
111
+ case let field as firebase . firestore . FieldValue :
112
+ return field
113
113
default :
114
114
return nil
115
115
}
Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ extension String: DocumentIDWrappable {
41
41
42
42
extension DocumentReference : DocumentIDWrappable {
43
43
public static func wrap( _ documentReference: DocumentReference ) throws -> Self {
44
- // Swift complains that values of type DocumentReference cannot be returned
45
- // as Self which is nonsensical. The cast forces this to work.
46
- return documentReference as! Self
44
+ return documentReference
47
45
}
48
46
}
49
47
You can’t perform that action at this time.
0 commit comments