Skip to content

Commit

Permalink
Merge pull request #1625 from RexOps/perl-5.41.4
Browse files Browse the repository at this point in the history
Fix precedence warning after perl-5.41.4
  • Loading branch information
ferki committed Nov 3, 2024
2 parents 8a1876c + 4d086cd commit 6c8769e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Revision history for Rex
[API CHANGES]

[BUG FIXES]
- Fix precedence warning after perl-5.41.4

[DOCUMENTATION]

Expand Down
4 changes: 2 additions & 2 deletions lib/Rex/Shared/Var/Array.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ sub PUSH {
__lock sub {
my $ref = __retrieve;

if ( !ref( $ref->{ $self->{varname} }->{data} ) eq "ARRAY" ) {
if ( ref( $ref->{ $self->{varname} }->{data} ) ne "ARRAY" ) {
$ref->{ $self->{varname} }->{data} = [];
}

Expand All @@ -97,7 +97,7 @@ sub UNSHIFT {
__lock sub {
my $ref = __retrieve;

if ( !ref( $ref->{ $self->{varname} }->{data} ) eq "ARRAY" ) {
if ( ref( $ref->{ $self->{varname} }->{data} ) ne "ARRAY" ) {
$ref->{ $self->{varname} }->{data} = [];
}

Expand Down

0 comments on commit 6c8769e

Please sign in to comment.