mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 11:02:30 +01:00
Fix Rubocop offenses
This commit is contained in:
parent
21a357521f
commit
e52cdd8512
@ -7,6 +7,7 @@ class Query
|
|||||||
|
|
||||||
def amount
|
def amount
|
||||||
return unless @params[:amount]
|
return unless @params[:amount]
|
||||||
|
|
||||||
@params[:amount].to_f
|
@params[:amount].to_f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ module Quote
|
|||||||
|
|
||||||
def cache_key
|
def cache_key
|
||||||
return if not_found?
|
return if not_found?
|
||||||
|
|
||||||
Digest::MD5.hexdigest(result.keys.first)
|
Digest::MD5.hexdigest(result.keys.first)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ module Quote
|
|||||||
|
|
||||||
def cache_key
|
def cache_key
|
||||||
return if not_found?
|
return if not_found?
|
||||||
|
|
||||||
Digest::MD5.hexdigest(result.keys.last)
|
Digest::MD5.hexdigest(result.keys.last)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user