diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-03 11:51:22 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-07-19 13:22:37 -0400 |
commit | 5384723269a623a4424808bb884a9359851528e8 (patch) | |
tree | c0059ba7cd013a017bffa3cb465a10522f31be09 /lib/api/deploy_keys.rb | |
parent | 03045cecbb41bd582f041ee3f9482d8fcc6b5921 (diff) | |
download | gitlab-ce-5384723269a623a4424808bb884a9359851528e8.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
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r-- | lib/api/deploy_keys.rb | 4 |
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 |