mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Simplify expression per feedback from @rspeicher
This commit is contained in:
@@ -183,9 +183,7 @@ module ProjectsHelper
|
||||
end
|
||||
|
||||
def default_clone_protocol
|
||||
if !current_user
|
||||
"http"
|
||||
elsif current_user.require_ssh_key?
|
||||
if !current_user || current_user.require_ssh_key?
|
||||
"http"
|
||||
else
|
||||
"ssh"
|
||||
|
||||
Reference in New Issue
Block a user