Skip to content

Commit 0480317

Browse files
committed
Change returns for nexts to please rubocop (behaviour is the same)
1 parent 818ad89 commit 0480317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/api/deploy_keys.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class DeployKeys < Grape::API
5353
key = user_project.deploy_keys.find_by(key: attrs[:key])
5454
if key
5555
present key, with: Entities::SSHKey
56-
return
56+
next
5757
end
5858

5959
# Check for available deploy keys in other projects
6060
key = current_user.accessible_deploy_keys.find_by(key: attrs[:key])
6161
if key
6262
user_project.deploy_keys << key
6363
present key, with: Entities::SSHKey
64-
return
64+
next
6565
end
6666
end
6767

0 commit comments

Comments
 (0)