diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/valuewriter.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/valuewriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/valuewriter.cpp b/src/mongo/scripting/mozjs/valuewriter.cpp index ef3b0b4d428..f40ef984576 100644 --- a/src/mongo/scripting/mozjs/valuewriter.cpp +++ b/src/mongo/scripting/mozjs/valuewriter.cpp @@ -316,8 +316,7 @@ void ValueWriter::_writeObject(BSONObjBuilder* b, if (scope->getProto<CodeInfo>().getJSClass() == jsclass) { if (o.hasOwnField(InternedString::scope) // CodeWScope - && - o.type(InternedString::scope) == mongo::Object) { + && o.type(InternedString::scope) == mongo::Object) { if (o.type(InternedString::code) != mongo::String) { uasserted(ErrorCodes::BadValue, "code must be a string"); } |