From 308ed01f14d89f84793d471c40325dc5fe25efda Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 3 Dec 2013 19:54:51 -0200 Subject: Remove useless empty string --- .../lib/active_support/number_helper/number_to_phone_converter.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb b/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb index 300924bded..e7840e98c3 100644 --- a/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb +++ b/activesupport/lib/active_support/number_helper/number_to_phone_converter.rb @@ -2,8 +2,7 @@ module ActiveSupport module NumberHelper class NumberToPhoneConverter < NumberConverter def convert - str = '' - str << country_code(opts[:country_code]) + str = country_code(opts[:country_code]) str << convert_to_phone_number(number.to_s.strip) str << phone_ext(opts[:extension]) end -- cgit v1.2.3