Change `return`s for `next`s to please rubocop (behaviour is the same)

This commit is contained in:
Alejandro Rodríguez 2016-06-03 11:51:22 -04:00
parent 818ad89ea5
commit 0480317433
1 changed files with 2 additions and 2 deletions

View File

@ -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