arrayref logic can just use $self
Matt S Trout [Mon, 25 Mar 2019 01:30:43 +0000 (01:30 +0000)]
lib/SQL/Abstract.pm

index 3391319..4685ed8 100644 (file)
@@ -572,7 +572,7 @@ sub _expand_expr {
     return $self->_expand_expr_hashpair($key, $value, $logic);
   }
   if (ref($expr) eq 'ARRAY') {
-    my $logic = lc($logic || $self->{logic});
+    my $logic = lc($self->{logic});
     return $self->_expand_andor("-${logic}", $expr);
   }
   if (my $literal = is_literal_value($expr)) {