Skip to content

Commit 767d7c2

Browse files
authored
Add @discardableResult to addDocument (#11151)
1 parent 44eeea0 commit 767d7c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Firestore/Swift/Source/AsyncAwait/CollectionReference+AsyncAwait.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import Foundation
2525
/// - Parameter data: A `Dictionary` containing the data for the new document.
2626
/// - Throws: `Error` if the backend rejected the write.
2727
/// - Returns: A `DocumentReference` pointing to the newly created document.
28+
@discardableResult
2829
func addDocument(data: [String: Any]) async throws -> DocumentReference {
2930
return try await withCheckedThrowingContinuation { continuation in
3031
var document: DocumentReference?

0 commit comments

Comments
 (0)