From: Ævar Arnfjörð Bjarmason Date: Thu, 30 Sep 2010 13:43:02 +0000 (+0000) Subject: send-email: sanitize_address use $foo, not "$foo" X-Git-Tag: v1.7.4-rc0~160^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff483897317b5379e189d6bd782270dd08c09966;p=git.git 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 Reviewed-by: Jeff King > Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 1218bbe72..1bf090a88 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -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