From 04803174331f9874db572ad712edfdf73b1ded16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= Date: Fri, 3 Jun 2016 11:51:22 -0400 Subject: Change `return`s for `next`s to please rubocop (behaviour is the same) --- lib/api/deploy_keys.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/api/deploy_keys.rb') 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 -- cgit v1.2.3