Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2019-04-23 09:25:47 +01:00
parent 7354c8eb13
commit 9f57f60b87
18 changed files with 80 additions and 80 deletions

View file

@ -364,10 +364,10 @@ module Api
end
# stupid Time seems to throw both of these for bad parsing, so
# we have to catch both and ensure the correct code path is taken.
rescue ArgumentError => ex
raise OSM::APIBadUserInput, ex.message.to_s
rescue RuntimeError => ex
raise OSM::APIBadUserInput, ex.message.to_s
rescue ArgumentError => e
raise OSM::APIBadUserInput, e.message.to_s
rescue RuntimeError => e
raise OSM::APIBadUserInput, e.message.to_s
end
##