Remove Rubocop override that is no longer necessary

This commit is contained in:
Grzegorz Bizon 2018-11-20 15:26:38 +01:00
parent 56e5a2a3ab
commit 747a5c425a
1 changed files with 0 additions and 2 deletions

View File

@ -19,7 +19,6 @@ module API
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'
end
# rubocop: disable CodeReuse/ActiveRecord
post '/' do
attributes = attributes_for_keys([:description, :active, :locked, :run_untagged, :tag_list, :maximum_timeout])
.merge(get_runner_details_from_request)
@ -46,7 +45,6 @@ module API
render_validation_error!(runner)
end
end
# rubocop: enable CodeReuse/ActiveRecord
desc 'Deletes a registered Runner' do
http_codes [[204, 'Runner was deleted'], [403, 'Forbidden']]