summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/generic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/generic.cpp')
-rw-r--r--src/mongo/db/commands/generic.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/commands/generic.cpp b/src/mongo/db/commands/generic.cpp
index 05724e33705..941ac0d2503 100644
--- a/src/mongo/db/commands/generic.cpp
+++ b/src/mongo/db/commands/generic.cpp
@@ -281,9 +281,9 @@ public:
if (it->first == it->second->getName())
commands.push_back(it->second);
}
- std::sort(commands.begin(),
- commands.end(),
- [](Command* lhs, Command* rhs) { return (lhs->getName()) < (rhs->getName()); });
+ std::sort(commands.begin(), commands.end(), [](Command* lhs, Command* rhs) {
+ return (lhs->getName()) < (rhs->getName());
+ });
BSONObjBuilder b(result.subobjStart("commands"));
for (const auto& c : commands) {
@@ -414,7 +414,8 @@ public:
result,
Status(ErrorCodes::TypeMismatch,
str::stream() << "Argument to getLog must be of type String; found "
- << val.toString(false) << " of type "
+ << val.toString(false)
+ << " of type "
<< typeName(val.type())));
}