link-checker commit: If there are no links, don't try to distribute them.

changeset:   398:73c47eae2569
tag:         tip
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Sat Apr 02 19:23:01 2011 +0300
files:       bin/checklink
description:
If there are no links, don't try to distribute them.


diff -r 36d183b191ea -r 73c47eae2569 bin/checklink
--- a/bin/checklink	Tue Mar 29 22:20:35 2011 +0300
+++ b/bin/checklink	Sat Apr 02 19:23:01 2011 +0300
@@ -1414,7 +1414,7 @@
     my @all;
     push(@all, @{$hostlinks->{$_}}) for @order;
 
-    return @all if (scalar(@order) == 1);
+    return @all if (scalar(@order) < 2);
 
     # Indexes and chunk size for "zipping" the end result list
     my $num = scalar(@{$hostlinks->{$order[0]}});

Received on Saturday, 2 April 2011 16:23:30 UTC