Fix new rubocop warnings
This commit is contained in:
parent
7354c8eb13
commit
9f57f60b87
18 changed files with 80 additions and 80 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue