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 <avarab@gmail.comReviewed-by: Avery Pennarun <apenwarr@gmail.com> Reviewed-by: Jeff King <peff@peff.net> > Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d5c7d69 commit e9bf741

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)