From b53f844129ff34db0253b3430ad2ae6f1c0415cb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 12 Feb 2009 02:34:54 -0400 Subject: [PATCH] Removed an excessive error check. --- src/op.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/op.cc b/src/op.cc index 902ed647..3de3cd5a 100644 --- a/src/op.cc +++ b/src/op.cc @@ -200,9 +200,6 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus) } 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() .match(left()->calc(scope, locus).to_string())); break;