Skip to content

Commit c44c187

Browse files
committed
Add @discardableResult to addDocument
1 parent bc3bccd commit c44c187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Firestore/Swift/Source/Codable/CollectionReference+WriteEncodable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public extension CollectionReference {
3131
/// the client is offline, though local changes will be visible
3232
/// immediately.
3333
/// - Returns: A `DocumentReference` pointing to the newly created document.
34+
@discardableResult
3435
func addDocument<T: Encodable>(from value: T,
3536
encoder: Firestore.Encoder = Firestore.Encoder(),
3637
completion: ((Error?) -> Void)? = nil) throws

0 commit comments

Comments
 (0)