diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-12 02:34:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-12 02:34:54 -0400 |
commit | b53f844129ff34db0253b3430ad2ae6f1c0415cb (patch) | |
tree | 760b9cda9ed8104090341264623555f7397d5f43 /src/op.cc | |
parent | 6f2e3b88649543d625b76ac5542dd8838b28f0b1 (diff) | |
download | fork-ledger-b53f844129ff34db0253b3430ad2ae6f1c0415cb.tar.gz fork-ledger-b53f844129ff34db0253b3430ad2ae6f1c0415cb.tar.bz2 fork-ledger-b53f844129ff34db0253b3430ad2ae6f1c0415cb.zip |
Removed an excessive error check.
Diffstat (limited to 'src/op.cc')
-rw-r--r-- | src/op.cc | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; |