Skip to content

Commit 9f17a76

Browse files
Spelling error in FirestoreDecodingError (#5520)
1 parent ca880b8 commit 9f17a76

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Firestore/Swift/Source/Codable/CodableErrors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public enum FirestoreDecodingError: Error {
1818
case decodingIsNotSupported(String)
19-
case fieldNameConfict(String)
19+
case fieldNameConflict(String)
2020
}
2121

2222
public enum FirestoreEncodingError: Error {

Firestore/Swift/Tests/Codable/FirestoreEncoderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class FirestoreEncoderTests: XCTestCase {
595595
in: FSTTestDocRef("abc/123")
596596
)
597597
XCTFail("Failed to throw")
598-
} catch let FirestoreDecodingError.fieldNameConfict(msg) {
598+
} catch let FirestoreDecodingError.fieldNameConflict(msg) {
599599
XCTAssertEqual(msg, "Field name [\"docId\"] was found from document \"abc/123\", "
600600
+ "cannot assign the document reference to this field.")
601601
return

Firestore/third_party/FirestoreEncoder/FirestoreDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ private struct _FirestoreKeyedDecodingContainer<K: CodingKey>: KeyedDecodingCont
346346
var codingPathCopy = codingPath.map { key in key.stringValue }
347347
codingPathCopy.append(key.stringValue)
348348

349-
throw FirestoreDecodingError.fieldNameConfict("Field name " +
349+
throw FirestoreDecodingError.fieldNameConflict("Field name " +
350350
"\(codingPathCopy) was found from document \"\(docPath)\", " +
351351
"cannot assign the document reference to this field.")
352352
}

0 commit comments

Comments
 (0)