Fix new rubocop warnings
This commit is contained in:
parent
c7061991e7
commit
5d3ecffa28
41 changed files with 252 additions and 250 deletions
|
@ -264,7 +264,7 @@ class TraceController < ApplicationController
|
|||
new_trace = Trace.from_xml(request.raw_post)
|
||||
|
||||
unless new_trace && new_trace.id == trace.id
|
||||
fail OSM::APIBadUserInput.new("The id in the url (#{trace.id}) is not the same as provided in the xml (#{new_trace.id})")
|
||||
raise OSM::APIBadUserInput.new("The id in the url (#{trace.id}) is not the same as provided in the xml (#{new_trace.id})")
|
||||
end
|
||||
|
||||
trace.description = new_trace.description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue