Simplify expression per feedback from @rspeicher

This commit is contained in:
Eirik Lygre
2015-12-07 19:24:51 +01:00
parent 88217029fc
commit 419d6fa6b1
+1 -3
View File
@@ -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"