File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Sources/FirebaseFirestore Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ internal struct FirestoreDataConverter {
108108 }
109109
110110 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
113113 default :
114114 return nil
115115 }
Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ extension String: DocumentIDWrappable {
4141
4242extension DocumentReference : DocumentIDWrappable {
4343 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
4745 }
4846}
4947
You can’t perform that action at this time.
0 commit comments