Skip to content

Commit e9bf741

Browse files
avargitster
authored andcommitted
send-email: use (?:) instead of () if no match variables are needed
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]: Avery Pennarun <[email protected]> Reviewed-by: Jeff King <[email protected]> > Signed-off-by: Junio C Hamano <[email protected]>
1 parent d5c7d69 commit e9bf741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ sub read_config {
365365
if (@suppress_cc) {
366366
foreach my $entry (@suppress_cc) {
367367
die "Unknown --suppress-cc field: '$entry'\n"
368-
unless $entry =~ /^(all|cccmd|cc|author|self|sob|body|bodycc)$/;
368+
unless $entry =~ /^(?:all|cccmd|cc|author|self|sob|body|bodycc)$/;
369369
$suppress_cc{$entry} = 1;
370370
}
371371
}

0 commit comments

Comments
 (0)