Commit 747a5c42 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove Rubocop override that is no longer necessary

parent 56e5a2a3
...@@ -19,7 +19,6 @@ module API ...@@ -19,7 +19,6 @@ module API
optional :tag_list, type: Array[String], desc: %q(List of Runner's tags) optional :tag_list, type: Array[String], desc: %q(List of Runner's tags)
optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job' optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job'
end end
# rubocop: disable CodeReuse/ActiveRecord
post '/' do post '/' do
attributes = attributes_for_keys([:description, :active, :locked, :run_untagged, :tag_list, :maximum_timeout]) attributes = attributes_for_keys([:description, :active, :locked, :run_untagged, :tag_list, :maximum_timeout])
.merge(get_runner_details_from_request) .merge(get_runner_details_from_request)
...@@ -46,7 +45,6 @@ module API ...@@ -46,7 +45,6 @@ module API
render_validation_error!(runner) render_validation_error!(runner)
end end
end end
# rubocop: enable CodeReuse/ActiveRecord
desc 'Deletes a registered Runner' do desc 'Deletes a registered Runner' do
http_codes [[204, 'Runner was deleted'], [403, 'Forbidden']] http_codes [[204, 'Runner was deleted'], [403, 'Forbidden']]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment