Skip to content

Commit 18c00dd

Browse files
committed
better usage of find()
1 parent 5246c7d commit 18c00dd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

helper.pl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ sub check_comments {
135135
/* commit time: $Format:%ai$ */
136136
MARKER
137137
my @all_files;
138-
find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'src');
139-
find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos');
140-
find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'tests');
138+
find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos', 'src', 'tests');
141139
for my $f (@all_files) {
142140
my $txt = read_file($f);
143141
if ($txt !~ /^\Q$first_comment\E/s) {

0 commit comments

Comments
 (0)