Skip to content
Snippets Groups Projects
Commit 04803174 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez
Browse files

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

parent 818ad89e
No related branches found
No related tags found
No related merge requests found
Loading
@@ -53,7 +53,7 @@ module API
Loading
@@ -53,7 +53,7 @@ module API
key = user_project.deploy_keys.find_by(key: attrs[:key]) key = user_project.deploy_keys.find_by(key: attrs[:key])
if key if key
present key, with: Entities::SSHKey present key, with: Entities::SSHKey
return next
end end
   
# Check for available deploy keys in other projects # Check for available deploy keys in other projects
Loading
@@ -61,7 +61,7 @@ module API
Loading
@@ -61,7 +61,7 @@ module API
if key if key
user_project.deploy_keys << key user_project.deploy_keys << key
present key, with: Entities::SSHKey present key, with: Entities::SSHKey
return next
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment