send-email: fix style: cuddle 'elsif' and 'else' with closing brace
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2cdaabb6f9
commit
22e3b46ff9
@ -517,22 +517,15 @@ sub split_addrs {
|
|||||||
} },
|
} },
|
||||||
|
|
||||||
sendmail => sub { my $fh = shift; while (<$fh>) {
|
sendmail => sub { my $fh = shift; while (<$fh>) {
|
||||||
if (/^\s*(?:#.*)?$/) { }
|
if (/^\s*(?:#.*)?$/) {
|
||||||
|
} elsif (/"/) {
|
||||||
elsif (/"/) {
|
|
||||||
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
|
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
|
||||||
}
|
} elsif (/^\s|\\$/) {
|
||||||
|
|
||||||
elsif (/^\s|\\$/) {
|
|
||||||
print STDERR "warning: sendmail continuation line is not supported: $_\n";
|
print STDERR "warning: sendmail continuation line is not supported: $_\n";
|
||||||
}
|
} elsif (/^(\S+?)\s*:\s*(.+)$/) {
|
||||||
|
|
||||||
elsif (/^(\S+?)\s*:\s*(.+)$/) {
|
|
||||||
my ($alias, $addr) = ($1, $2);
|
my ($alias, $addr) = ($1, $2);
|
||||||
$aliases{$alias} = [ split_addrs($addr) ];
|
$aliases{$alias} = [ split_addrs($addr) ];
|
||||||
}
|
} else {
|
||||||
|
|
||||||
else {
|
|
||||||
print STDERR "warning: sendmail line is not recognized: $_\n";
|
print STDERR "warning: sendmail line is not recognized: $_\n";
|
||||||
}}},
|
}}},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user