Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2018-09-22 17:12:29 +01:00
parent fbd6909b91
commit 6c2093b29d
21 changed files with 51 additions and 0 deletions

View file

@ -5,6 +5,7 @@ module I18n
super
rescue InvalidPluralizationData => ex
raise ex unless ex.entry.key?(:other)
ex.entry[:other]
end
end

View file

@ -52,6 +52,7 @@ module OpenStreetMap
def oauth1_verify(request, options = {}, &block)
signature = OAuth::Signature.build(request, options, &block)
return false unless OauthNonce.remember(signature.request.nonce, signature.request.timestamp)
value = signature.verify
if request.ssl? && !value
http_request = request.dup