Removed an excessive error check.
This commit is contained in:
parent
6f2e3b8864
commit
b53f844129
1 changed files with 0 additions and 3 deletions
|
|
@ -200,9 +200,6 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus)
|
||||||
}
|
}
|
||||||
|
|
||||||
case O_MATCH:
|
case O_MATCH:
|
||||||
if (! right()->is_value() || ! right()->as_value().is_mask())
|
|
||||||
throw_(calc_error, "Right-hand argument to match operator must be a regex");
|
|
||||||
|
|
||||||
result = (right()->calc(scope, locus).as_mask()
|
result = (right()->calc(scope, locus).as_mask()
|
||||||
.match(left()->calc(scope, locus).to_string()));
|
.match(left()->calc(scope, locus).to_string()));
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue