Commits

Anonymous committed ec1ecb7

Not passing ->_current to _me_die.

  • Participants
  • Parent commits fece539

Comments (0)

Files changed (1)

File lib/File/Find/Object.pm

             return $self->item($self->_current_path($self->_current()));
         }
         if(!$self->_movenext) {
-            if ($self->_me_die($self->_current()))
+            if ($self->_me_die())
             {
                 return $self->item(undef);
             }
 }
 
 sub _me_die {
-    my ($self, $current) = @_;
+    my $self = shift;
 
+    my $current = $self->_current();
+
+    # TODO : Refactor this check.
     if ($self eq $current)
     {
         return 1;