summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-02-20 19:18:12 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2017-02-28 08:32:38 +0100
commit86c58687b22f788ad7c821af55abece2f9d89d50 (patch)
treeeb07659dee80d897170fc4965a124251a22a913a /lib/api/runners.rb
parent7733f285aca97d444382a59eda0ea3e303539c26 (diff)
downloadgitlab-ce-86c58687b22f788ad7c821af55abece2f9d89d50.tar.gz
Return 204 for delete endpoints
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 252e59bfa58..2e41f16f8c6 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -78,9 +78,8 @@ module API
delete ':id' do
runner = get_runner(params[:id])
authenticate_delete_runner!(runner)
- runner.destroy!
- present runner, with: Entities::Runner
+ runner.destroy!
end
end
@@ -136,8 +135,6 @@ module API
forbidden!("Only one project associated with the runner. Please remove the runner instead") if runner.projects.count == 1
runner_project.destroy
-
- present runner, with: Entities::Runner
end
end