summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-11-17 21:27:12 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-17 21:44:26 +0100
commit166ee0965bacc20e2ad1187321654499a9b0f825 (patch)
tree57e97bcfd0c819adbe6b3673bb45b4fc0124781c /lib/api
parent1607efa40081702488e22e560db2c1e30cd80093 (diff)
downloadgitlab-ce-166ee0965bacc20e2ad1187321654499a9b0f825.tar.gz
More refactoring, push present to base command
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/services.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb
index 094fca49c28..b0a94508d10 100644
--- a/lib/api/services.rb
+++ b/lib/api/services.rb
@@ -61,7 +61,6 @@ module API
end
resource :projects do
-
desc 'Trigger a slash command' do
detail 'Added in GitLab 8.13'
end
@@ -78,7 +77,8 @@ module API
result = service.try(:active?) && service.try(:trigger, params)
if result
- present result, status: result[:status] || 200
+ status result[:status] || 200
+ present result
else
not_found!('Service')
end