broken_links warnings unterdrücken
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 14 Sep 2011 10:34:47 +0000 (12:34 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 14 Sep 2011 10:34:47 +0000 (12:34 +0200)
t/007broken_links.t

index ee0021e..5ac03bc 100644 (file)
@@ -26,6 +26,7 @@ my $finder = URI::Find->new(sub {
 });
 
 find(sub {
+  return unless -f $File::Find::name;
   open(FH, $File::Find::name) or return;
   my $text;
   { local $/; $text = <FH>; }