]> git.donarmstrong.com Git - debbugs.git/commitdiff
use return, not next inside of sub
authorDon Armstrong <don@donarmstrong.com>
Thu, 10 Aug 2017 00:51:07 +0000 (17:51 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 10 Aug 2017 00:51:07 +0000 (17:51 -0700)
bin/debbugs-loadsql

index 9597447aaf0997c8e01efbd0ee2848fbce462d41..f343c97eac9fde3ad8c43a63279967b0780e6e49 100755 (executable)
@@ -563,7 +563,7 @@ sub add_logs {
                   if ($options{quick}) {
                       my $rs = $s->resultset('Bug')->
                          search({id=>$bug})->single();
-                      next if defined $rs and
+                      return if defined $rs and
                          $stat->mtime <= $rs->last_modified()->epoch();
                   }
                   eval {