chiark / gitweb /
Dgit.pm: Fix next's in git_for_each_tag_referring which should be returns
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 May 2015 13:14:52 +0000 (14:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:14 +0000 (11:54 +0100)
Debian/Dgit.pm

index 49cc073..ce7ae8d 100644 (file)
@@ -86,8 +86,8 @@ sub git_for_each_tag_referring ($$) {
         ($objreferring // 'UNDEF'),"\n";
     git_for_each_ref('refs/tags', sub {
        my ($objid,$objtype,$fullrefname,$tagname) = @_;
-       next unless $objtype eq 'tag';
-       next if defined $objreferring and $objid ne $objreferring;
+       return unless $objtype eq 'tag';
+       return if defined $objreferring and $objid ne $objreferring;
        $func->($objid,$fullrefname,$tagname);
     });
 }