Commit d06b8ec6 authored by Shane Kilkelly's avatar Shane Kilkelly

Use the ? operator

parent 2a1e22f2
......@@ -416,7 +416,7 @@ if process.env["SHARELATEX_LDAP_HOST"]
if typeof(ca) == 'string'
ca_paths = [ca]
else if typeof(ca) == 'object' && ca.length?
else if typeof(ca) == 'object' && ca?.length?
ca_paths = ca
console.error "problem parsing SHARELATEX_LDAP_TLS_OPTS_CA_PATH"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment