mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-20 16:59:06 +00:00
Don't check config is a HASH
At some point `$self->config()` started returning a `bless`ed object so checking it was a `HASH` began to fail, preventing someone using natural sort. AFAIK the config option always has to behave as a hash so it should be safe to avoid this test.
This commit is contained in:
parent
b302a7724f
commit
4ea91d4e68
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue