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>
Ævar Arnfjörð Bjarmason committed
Sep 30, 2010 at 13:43 UTC
ff483897317b5379e189d6bd782270dd08c09966
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -864,7 +864,7 @@ sub sanitize_address {
864
my ($recipient_name, $recipient_addr) = ($recipient =~ /^(.*?)\s*(<.*)/);
865
866
if (not $recipient_name) {
867
- return "$recipient";
867
+ return $recipient;
868
}
869
870
# if recipient_name is already quoted, do nothing