Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
send-email: fix style: cuddle 'elsif' and 'else' with closing brace
author
Eric Sunshine
<sunshine@sunshineco.com>
Sun, 31 May 2015 22:29:26 +0000
(18:29 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 1 Jun 2015 22:52:46 +0000
(15:52 -0700)
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2cdaabb
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index 0b1868200bcd3e756aecd41d43315d1525980ab1..1380e6e163fc300b828160c0ee5c1229bace8ad1 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-517,22
+517,15
@@
sub split_addrs {
} },
sendmail => sub { my $fh = shift; while (<$fh>) {
} },
sendmail => sub { my $fh = shift; while (<$fh>) {
- if (/^\s*(?:#.*)?$/) { }
-
- elsif (/"/) {
+ if (/^\s*(?:#.*)?$/) {
+ } 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);
$aliases{$alias} = [ split_addrs($addr) ];
my ($alias, $addr) = ($1, $2);
$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";
}}},