Skip to content

Commit 1ca3d6e

Browse files
jaysoffiangitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7c33d3a commit 1ca3d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ sub expand_aliases {
406406

407407
$initial_reply_to = $_;
408408
}
409-
if (defined $initial_reply_to && $_ ne "") {
409+
if (defined $initial_reply_to) {
410410
$initial_reply_to =~ s/^\s*<?/</;
411411
$initial_reply_to =~ s/>?\s*$/>/;
412412
}

0 commit comments

Comments
 (0)