Commits

Anonymous committed 3dd937f

Renmaed a method - _inode instead of _st.

Comments (0)

Files changed (1)

lib/File/Find/Object.pm

     return 1;
 }
 
-sub _find_ancestor_with_same_st {
+sub _find_ancestor_with_same_inode {
     my $self = shift;
     my $st = shift;
 
     my $ptr = $self->_current_father;
-    my $rc;
 
     while($ptr) {
         if ($ptr->_is_same_inode($st)) {
     continue {
         $ptr = $self->_father($ptr);
     }
+
     return;
 }
 
         return 0;
     }
 
-    if (my $ptr = $self->_find_ancestor_with_same_st($st)) {
+    if (my $ptr = $self->_find_ancestor_with_same_inode($st)) {
         printf(STDERR "Avoid loop " . $ptr->_dir_as_string . " => %s\n",
             $self->_current_path());
         return 0;