summaryrefslogtreecommitdiff
path: root/lib
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-20 13:39:34 -0400
commit04803174331f9874db572ad712edfdf73b1ded16 (patch)
treec9d568e2e1107acbfe7c5ebff81af0477b1e3c0c /lib
parent818ad89ea5f9ac3cf05506e7b81fd0c2fca5d9dc (diff)
downloadgitlab-ce-04803174331f9874db572ad712edfdf73b1ded16.tar.gz
Change `return`s for `next`s to please rubocop (behaviour is the same)
Diffstat (limited to 'lib')
-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