summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/mutable/document.cpp')
-rw-r--r--src/mongo/bson/mutable/document.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/bson/mutable/document.cpp b/src/mongo/bson/mutable/document.cpp
index 2afe8c8de96..5ae92341217 100644
--- a/src/mongo/bson/mutable/document.cpp
+++ b/src/mongo/bson/mutable/document.cpp
@@ -777,8 +777,9 @@ public:
// It should be impossible to have an opaque left child and be non-serialized,
dassert(rep->serialized);
- BSONElement childElt = (hasValue(*rep) ? getSerializedElement(*rep).embeddedObject()
- : getObject(rep->objIdx)).firstElement();
+ BSONElement childElt =
+ (hasValue(*rep) ? getSerializedElement(*rep).embeddedObject() : getObject(rep->objIdx))
+ .firstElement();
if (!childElt.eoo()) {
// Do this now before other writes so compiler can exploit knowing