M: Replaced two nested if blocks with one.

This commit is contained in:
Jens Luedicke
2013-03-09 21:00:38 +01:00
parent 2b81882f1e
commit 456b79fb21

View File

@@ -151,10 +151,8 @@ 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;