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