M: Replaced two nested if blocks with one.
This commit is contained in:
@@ -151,11 +151,9 @@ sub walk {
|
||||
|
||||
} elsif (-d $path) {
|
||||
|
||||
if ($self->{depth} != 0) {
|
||||
if ($self->{currentDepth} == $self->{depth}) {
|
||||
if (($self->{depth} > 0) and ($self->{currentDepth} == $self->{depth})) {
|
||||
return SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
opendir (my $dirh, $path) || return FAILED;
|
||||
$self->{entryList} = [ no_upwards(readdir $dirh) ];
|
||||
|
||||
Reference in New Issue
Block a user