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

Simplify expression per feedback from @rspeicher

parent 88217029
...@@ -183,9 +183,7 @@ module ProjectsHelper ...@@ -183,9 +183,7 @@ module ProjectsHelper
end end
def default_clone_protocol def default_clone_protocol
if !current_user if !current_user || current_user.require_ssh_key?
"http"
elsif current_user.require_ssh_key?
"http" "http"
else else
"ssh" "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