summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_options_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/shell_options_init.cpp')
-rw-r--r--src/mongo/shell/shell_options_init.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/shell/shell_options_init.cpp b/src/mongo/shell/shell_options_init.cpp
index 2ea64570bc8..b89b024a2b6 100644
--- a/src/mongo/shell/shell_options_init.cpp
+++ b/src/mongo/shell/shell_options_init.cpp
@@ -42,12 +42,7 @@ MONGO_STARTUP_OPTIONS_VALIDATE(MongoShellOptions)(InitializerContext* context) {
if (!handlePreValidationMongoShellOptions(moe::startupOptionsParsed, context->args())) {
quickExit(EXIT_SUCCESS);
}
- Status ret = moe::startupOptionsParsed.validate();
- if (!ret.isOK()) {
- return ret;
- }
-
- return Status::OK();
+ uassertStatusOK(moe::startupOptionsParsed.validate());
}
MONGO_STARTUP_OPTIONS_STORE(MongoShellOptions)(InitializerContext* context) {
@@ -57,6 +52,5 @@ MONGO_STARTUP_OPTIONS_STORE(MongoShellOptions)(InitializerContext* context) {
std::cerr << "try '" << context->args()[0] << " --help' for more information" << std::endl;
quickExit(EXIT_BADOPTIONS);
}
- return Status::OK();
}
} // namespace mongo