summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_where_noop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_where_noop.cpp')
-rw-r--r--src/mongo/db/matcher/expression_where_noop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_where_noop.cpp b/src/mongo/db/matcher/expression_where_noop.cpp
index 23bb7c287e5..c65bf70019c 100644
--- a/src/mongo/db/matcher/expression_where_noop.cpp
+++ b/src/mongo/db/matcher/expression_where_noop.cpp
@@ -40,7 +40,7 @@ WhereNoOpMatchExpression::WhereNoOpMatchExpression(WhereParams params)
: WhereMatchExpressionBase(std::move(params)) {}
bool WhereNoOpMatchExpression::matches(const MatchableDocument* doc, MatchDetails* details) const {
- return false;
+ MONGO_UNREACHABLE;
}
std::unique_ptr<MatchExpression> WhereNoOpMatchExpression::shallowClone() const {