Merge pull request #155 from cqexbesd/ref

Don't check config is a HASH
This commit is contained in:
Duncan Ferguson 2024-05-12 08:21:11 +01:00 committed by GitHub
commit 4188dc980f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -306,9 +306,7 @@ sub sort {
my $sort = sub { sort @_ };
return $sort
unless ref( $self->config() ) eq "HASH"
&& $self->config()->{'use_natural_sort'};
return $sort unless $self->config()->{'use_natural_sort'};
# if the user has asked for natural sorting we need to include an extra
# module