From 2e0f8604e57aa3736dbf8ee8979b67306cc96485 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 11 May 2018 18:26:44 +0300 Subject: [PATCH] fix(cloudcmd) choose --- bin/cloudcmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 315ceaef..df5f877b 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -13,7 +13,7 @@ const config = require(DIR_SERVER + 'config'); const env = require(DIR_SERVER + 'env'); const choose = (a, b) => { - if (!a && typeof a === 'undefined') + if (!a) return b; return a;