mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
implicit return of nil
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user