aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/model/document_key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model/document_key.cc')
-rw-r--r--Firestore/core/src/firebase/firestore/model/document_key.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/document_key.cc b/Firestore/core/src/firebase/firestore/model/document_key.cc
index ddda4c9..7dae412 100644
--- a/Firestore/core/src/firebase/firestore/model/document_key.cc
+++ b/Firestore/core/src/firebase/firestore/model/document_key.cc
@@ -18,7 +18,7 @@
#include <utility>
-#include "Firestore/core/src/firebase/firestore/util/firebase_assert.h"
+#include "Firestore/core/src/firebase/firestore/util/hard_assert.h"
namespace firebase {
namespace firestore {
@@ -27,9 +27,8 @@ namespace model {
namespace {
void AssertValidPath(const ResourcePath& path) {
- FIREBASE_ASSERT_MESSAGE(DocumentKey::IsDocumentKey(path),
- "invalid document key path: %s",
- path.CanonicalString().c_str());
+ HARD_ASSERT(DocumentKey::IsDocumentKey(path), "invalid document key path: %s",
+ path.CanonicalString());
}
} // namespace