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