Mercurial > pub > Impl
diff Lib/IMPL/DOM/Navigator.pm @ 235:a4d9126edcbb
code cleaning
author | sergey |
---|---|
date | Fri, 12 Oct 2012 02:08:51 +0400 |
parents | 4d0e1962161c |
children | b8c724f6de36 |
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Navigator.pm Thu Oct 11 20:11:45 2012 +0400 +++ b/Lib/IMPL/DOM/Navigator.pm Fri Oct 12 02:08:51 2012 +0400 @@ -47,7 +47,7 @@ my @alternatives = $current->selectNodes($query); unless (@alternatives) { - $current = $this->advanceNavigator or return undef; + $current = $this->advanceNavigator or return; @alternatives = $current->selectNodes($query); } @@ -60,7 +60,7 @@ $node = $alternatives[0]; } else { - return undef; + return; } } @@ -103,13 +103,13 @@ if ( exists $this->{$_state}{query} ) { my $query = $this->{$_state}{query}; - $this->Back or return undef; # that meams the end of the history + $this->Back or return; # that meams the end of the history undef while ( $this->advanceNavigator and not $this->Navigate($query)); return $this->Current; } - return undef; + return; } return $this->Current; @@ -142,7 +142,7 @@ } $this->Current if defined wantarray; } else { - return undef; + return; } } @@ -165,7 +165,7 @@ if (my $state = $this->{$_path} ? $this->{$_path}->[$index] : undef ) { return $state->{alternatives}[$state->{current}] } else { - return undef; + return; } } @@ -220,7 +220,7 @@ if ($@) { $this->restoreState(); - return undef; + return; } else { $this->applyState(); return $result;