W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2011

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

From: Mercurial notifier <nobody@w3.org>
Date: Sat, 02 Apr 2011 16:23:28 +0000
Message-Id: <E1Q63bk-0002Xe-M7@mcbain.w3.org>
To: link-checker updates <www-validator-cvs@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:45 UTC