mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
implicit return of nil
This commit is contained in:
parent
9c219bf361
commit
98d3c41cfb
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ module ActionView
|
|||
# number_to_phone(1235551234, :country_code => 1, :extension => 1343, :delimiter => ".")
|
||||
# => +1.123.555.1234 x 1343
|
||||
def number_to_phone(number, options = {})
|
||||
return nil unless number
|
||||
return unless number
|
||||
|
||||
begin
|
||||
Float(number)
|
||||
|
|
Loading…
Reference in a new issue