[Pkg-javascript-commits] [node-shell-quote] 21/137: pass another test by using "" as the undefined

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-shell-quote.

commit 46e6cf4b974e1cec0601e81a0dc2820dc849f775
Author: James Halliday <mail at substack.net>
Date:   Sun Apr 14 20:15:03 2013 -0700

    pass another test by using "" as the undefined
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index a613dc3..cb4746a 100644
--- a/index.js
+++ b/index.js
@@ -37,6 +37,6 @@ exports.parse = function (s, env) {
         ;
     }
     function getVar (_, pre, key) {
-        return pre + String(env[key]);
+        return pre + String(env[key] || '');
     }
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git



More information about the Pkg-javascript-commits mailing list