Fix Rubocop offenses

This commit is contained in:
Hakan Ensari 2018-09-11 18:08:14 +01:00
parent 21a357521f
commit e52cdd8512
3 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class Query
def amount
return unless @params[:amount]
@params[:amount].to_f
end

View File

@ -14,6 +14,7 @@ module Quote
def cache_key
return if not_found?
Digest::MD5.hexdigest(result.keys.first)
end

View File

@ -15,6 +15,7 @@ module Quote
def cache_key
return if not_found?
Digest::MD5.hexdigest(result.keys.last)
end