From d06b8ec6883be0c2195977895d164ff82519c9f7 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 3 Nov 2016 16:28:25 +0000 Subject: [PATCH] Use the ? operator --- settings.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.coffee b/settings.coffee index 2ecd4295f4..57d3c22c0d 100644 --- a/settings.coffee +++ b/settings.coffee @@ -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 else console.error "problem parsing SHARELATEX_LDAP_TLS_OPTS_CA_PATH"