send-email: sanitize_address use $foo, not "$foo"
There's no reason to explicitly stringify a variable in Perl unless it's an overloaded object and you want to call overload::StrVal, otherwise it's just creating a new scalar redundantly. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.comReviewed-by: Avery Pennarun <apenwarr@gmail.com> Reviewed-by: Jeff King <peff@peff.net> > Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
0d290a4634
commit
ff48389731
@ -864,7 +864,7 @@ sub sanitize_address {
|
||||
my ($recipient_name, $recipient_addr) = ($recipient =~ /^(.*?)\s*(<.*)/);
|
||||
|
||||
if (not $recipient_name) {
|
||||
return "$recipient";
|
||||
return $recipient;
|
||||
}
|
||||
|
||||
# if recipient_name is already quoted, do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user