Fix rubocop offenses
This commit is contained in:
@ -5,7 +5,7 @@ module TimeHelper
|
||||
def time_to_f(timestamp)
|
||||
unless timestamp.nil?
|
||||
timestamp = timestamp.split(':')
|
||||
return timestamp[0].to_i * 60 * 60 + timestamp[1].to_i * 60 + timestamp[2].to_f
|
||||
return (timestamp[0].to_i * 60 * 60) + (timestamp[1].to_i * 60) + timestamp[2].to_f
|
||||
end
|
||||
nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user