Skip to content

Commit

Permalink
Merge pull request #21 from Madskill/use_uniq
Browse files Browse the repository at this point in the history
use uniq from List::Util
  • Loading branch information
renormalist authored Aug 28, 2019
2 parents 38deaf8 + 733cf82 commit d40e8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Data/DPath/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use aliased 'Data::DPath::Attrs';
use Scalar::Util 'reftype';
use Data::DPath::Filters;
use Iterator::Util;
use List::Util 1.45 'min', 'uniqnum';
use List::Util 1.45 'min', 'uniq';
#use Sys::CPU;
use POSIX ();
use Safe;
Expand Down Expand Up @@ -166,7 +166,7 @@ sub _all_ref {

return [
map { $self->give_references ? $_ : $$_ }
uniqnum
uniq
map { defined $_ ? $_->ref : () }
@{$self->current_points}
];
Expand Down

0 comments on commit d40e8f4

Please sign in to comment.