提交 419d6fa6 编写于 作者: E Eirik Lygre

Simplify expression per feedback from @rspeicher

上级 88217029
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册