Permalink
Browse files

Don't check the "is it a file" condition twice

  • Loading branch information...
1 parent e2b18cb commit cf45154ad43f7d1b2cef66b4a280f46173c9b854 @obra obra committed Feb 16, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Test/Continuous.pm
View
@@ -38,8 +38,9 @@ sub _files {
return @files if @files;
find sub {
my $filename = $File::Find::name;
+
return if ! -f $filename;
- return unless $filename =~ /\.(p[lm]|t)$/ && -f $filename;
+ return unless $filename =~ /\.(p[lm]|t)$/;
push @files, $filename;
}, getcwd;
return @files;

0 comments on commit cf45154

Please sign in to comment.