Commit 419d6fa6 authored by Eirik Lygre's avatar Eirik Lygre

Simplify expression per feedback from @rspeicher

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment