diff options
author | Jay Soffian <jaysoffian@gmail.com> | 2008-02-20 00:55:07 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-20 02:47:54 -0800 |
commit | 1ca3d6ed01774eab37e96d9c88b840ea618f97af (patch) | |
tree | 1237818d03f82189fcc20fa92279a6e1eec179b9 /git-send-email.perl | |
parent | 7c33d3a5116fd72877802288cca6735642bb5d6f (diff) | |
download | git-1ca3d6ed01774eab37e96d9c88b840ea618f97af.tar.gz git-1ca3d6ed01774eab37e96d9c88b840ea618f97af.tar.xz |
send-email: squelch warning due to comparing undefined $_ to ""
The check to see if initial_reply_to is defined was also comparing $_ to
"" for a reason I cannot ascertain (looking at the commit which made the
change didn't provide enlightenment), but if $_ is undefined, perl
generates a warning.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index a1a9d14b0..8e6f3b22c 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -406,7 +406,7 @@ if ($thread && !defined $initial_reply_to && $prompting) { $initial_reply_to = $_; } -if (defined $initial_reply_to && $_ ne "") { +if (defined $initial_reply_to) { $initial_reply_to =~ s/^\s*<?/</; $initial_reply_to =~ s/>?\s*$/>/; } |