summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index cf48f88bec9..b8efef318d3 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -233,7 +233,7 @@ module Gitlab
end
end
- # Delete project hook
+ # Deletes project hook. This is an idempotent function.
#
# Parameters:
# id (required) - The ID of a project
@@ -248,6 +248,7 @@ module Gitlab
@hook = ProjectHook.find(params[:hook_id])
@hook.destroy
rescue
+ # ProjectHook can raise Error if hook_id not found
end
end