Skip to content

Commit

Permalink
Don't use an array use the array reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Jan 10, 2025
1 parent d019469 commit 0a84fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pf/cluster.pm
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ Returns the list of ConfigStore to synchronize between cluster members
=cut

sub stores_to_sync {
my @tmp_stores = pf::ConfigStore::All->all_stores();
my $tmp_stores = pf::ConfigStore::All->all_stores();

my @stores = grep { !Role::Tiny->is_role($_) && !$_->does('pf::ConfigStore::Group') && !$_->does('pf::ConfigStore::Filtered') } @tmp_stores;
my @stores = grep { !Role::Tiny->is_role($_) && !$_->does('pf::ConfigStore::Group') && !$_->does('pf::ConfigStore::Filtered') } @$tmp_stores;
return \@stores;
}

Expand Down

0 comments on commit 0a84fd1

Please sign in to comment.