From: Eric Sunshine Date: Sun, 31 May 2015 22:29:26 +0000 (-0400) Subject: send-email: fix style: cuddle 'elsif' and 'else' with closing brace X-Git-Tag: v2.5.0-rc0~28^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/22e3b46ff95ac01add2d1e8874708b06c9e7db91 send-email: fix style: cuddle 'elsif' and 'else' with closing brace Signed-off-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 0b1868200b..1380e6e163 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -517,22 +517,15 @@ sub split_addrs { } }, sendmail => sub { my $fh = shift; while (<$fh>) { - if (/^\s*(?:#.*)?$/) { } - - elsif (/"/) { + if (/^\s*(?:#.*)?$/) { + } elsif (/"/) { 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"; - } - - elsif (/^(\S+?)\s*:\s*(.+)$/) { + } elsif (/^(\S+?)\s*:\s*(.+)$/) { my ($alias, $addr) = ($1, $2); $aliases{$alias} = [ split_addrs($addr) ]; - } - - else { + } else { print STDERR "warning: sendmail line is not recognized: $_\n"; }}},