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>
Eric Sunshine committed
May 31, 2015 at 18:29 UTC
22e3b46ff95ac01add2d1e8874708b06c9e7db91
1 file changed
+5
-12
git-send-email.perl
+5
-12
@@ -517,22 +517,15 @@ my %parse_alias = (
517
} },
518
519
sendmail => sub { my $fh = shift; while (<$fh>) {
520
- if (/^\s*(?:#.*)?$/) { }
521
-
522
- elsif (/"/) {
520
+ if (/^\s*(?:#.*)?$/) {
521
+ } elsif (/"/) {
522
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
524
- }
525
-
526
- elsif (/^\s|\\$/) {
523
+ } elsif (/^\s|\\$/) {
524
print STDERR "warning: sendmail continuation line is not supported: $_\n";
528
- }
529
-
530
- elsif (/^(\S+?)\s*:\s*(.+)$/) {
525
+ } elsif (/^(\S+?)\s*:\s*(.+)$/) {
526
my ($alias, $addr) = ($1, $2);
527
$aliases{$alias} = [ split_addrs($addr) ];
533
- }
534
-
535
- else {
528
+ } else {
529
print STDERR "warning: sendmail line is not recognized: $_\n";
530
}}},
531