projects
/
scpubgit/Q-Branch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d781a12
)
condense op handling
Matt S Trout [Wed, 27 Mar 2019 01:22:40 +0000 (
01:22
+0000)]
lib/SQL/Abstract.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
0eff852
..
6043a43
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-702,8
+702,7
@@
sub _expand_expr_hashpair_scalar {
sub _expand_expr_hashpair_op {
my ($self, $k, $v) = @_;
- my $op = $k;
- $op =~ s/^-(?=\w)//;
+ (my $op = $k) =~ s/^-(?=\w)//;
$self->_assert_pass_injection_guard($op);
# Ops prefixed with -not_ get converted