summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-06-03 11:51:22 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-07-19 13:22:37 -0400
commit5384723269a623a4424808bb884a9359851528e8 (patch)
treec0059ba7cd013a017bffa3cb465a10522f31be09
parent03045cecbb41bd582f041ee3f9482d8fcc6b5921 (diff)
downloadgitlab-ce-14284-allow-all-deploy-keys-to-be-retrieved-via-api-regardless-of-project-affiliation.tar.gz
Change `return`s for `next`s to please rubocop (behaviour is the same)14284-allow-all-deploy-keys-to-be-retrieved-via-api-regardless-of-project-affiliation
-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