Commits

shl...@6f433eb9-a002-0410-945b-ee5462c261ee  committed 11278c8

Refactoring: made _current() and _is_top saner (and probably faster).

  • Participants
  • Parent commits 421830b

Comments (0)

Files changed (1)

File lib/File/Find/Object.pm

 
     my $dir_stack = $self->_dir_stack();
 
-    if ($self->_current_idx < 0)
+    if ($self->_is_top())
     {
         return $self;
     }
 {
     my $self = shift;
 
-    return ($self->_current() eq $self);
+    return ($self->_current_idx() < 0);
 }
 
 sub next {