Commits

Anonymous committed 6cf84c8

Extracted the _inc_current_idx method.

Comments (0)

Files changed (1)

lib/File/Find/Object.pm

     return 1;
 }
 
+sub _inc_current_idx {
+    my $self = shift;
+
+    $self->_current_idx($self->_current_idx()+1);
+
+    return;
+}
+
 sub _handle_recurse {
     my $self = shift;
 
     
     if ($status ne "SKIP")
     {
-        $self->_current_idx($self->_current_idx()+1);
+        $self->_inc_current_idx();
     }
+
     return $status;
 }