summaryrefslogtreecommitdiff
path: root/lib/api/deploy_keys.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r--lib/api/deploy_keys.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb
index 63355e4968d..5c570b5e5ca 100644
--- a/lib/api/deploy_keys.rb
+++ b/lib/api/deploy_keys.rb
@@ -53,7 +53,7 @@ module API
key = user_project.deploy_keys.find_by(key: attrs[:key])
if key
present key, with: Entities::SSHKey
- return
+ next
end
# Check for available deploy keys in other projects
@@ -61,7 +61,7 @@ module API
if key
user_project.deploy_keys << key
present key, with: Entities::SSHKey
- return
+ next
end
end