Skip to content

Commit

Permalink
remove an DCHECK. it is not needed. although the binary operations th…
Browse files Browse the repository at this point in the history
…at it is guarding are suppoed to work only on more than 1 operand, they can and they are, de facto, used to process expressions with only one operand.
  • Loading branch information
xtcyclist committed Mar 24, 2023
1 parent 8f33748 commit 0a76751
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/common/expression/LogicalExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace nebula {

const Value &LogicalExpression::eval(ExpressionContext &ctx) {
DCHECK_GE(operands_.size(), 2UL);
switch (kind()) {
case Kind::kLogicalAnd:
return evalAnd(ctx);
Expand Down

0 comments on commit 0a76751

Please sign in to comment.