summaryrefslogtreecommitdiff
path: root/app/models/concerns/mirror_authentication.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/mirror_authentication.rb')
-rw-r--r--app/models/concerns/mirror_authentication.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/mirror_authentication.rb b/app/models/concerns/mirror_authentication.rb
index e3e1a0441f8..948094221e5 100644
--- a/app/models/concerns/mirror_authentication.rb
+++ b/app/models/concerns/mirror_authentication.rb
@@ -79,7 +79,7 @@ module MirrorAuthentication
end
def ssh_public_key
- return nil if ssh_private_key.blank?
+ return if ssh_private_key.blank?
comment = "git@#{::Gitlab.config.gitlab.host}"
::SSHKey.new(ssh_private_key, comment: comment).ssh_public_key