From: Dagfinn Ilmari Mannsåker Date: Thu, 13 Apr 2017 10:35:48 +0000 (+0100) Subject: Prune pointless puke parens X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e49a4874db140e947911a9bce927332bdf74e02;p=scpubgit%2FQ-Branch.git Prune pointless puke parens --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 264b0b1..5b2c23f 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1161,7 +1161,7 @@ sub _where_field_BETWEEN { }, HASHREF => sub { my ($func, $arg, @rest) = %$val; - puke ("Only simple { -func => arg } functions accepted as sub-arguments to BETWEEN") + puke "Only simple { -func => arg } functions accepted as sub-arguments to BETWEEN" if (@rest or $func !~ /^ \- (.+)/x); $self->_where_unary_op ($1 => $arg); }, @@ -1218,7 +1218,7 @@ sub _where_field_IN { }, HASHREF => sub { my ($func, $arg, @rest) = %$val; - puke ("Only simple { -func => arg } functions accepted as sub-arguments to IN") + puke "Only simple { -func => arg } functions accepted as sub-arguments to IN" if (@rest or $func !~ /^ \- (.+)/x); $self->_where_unary_op ($1 => $arg); },