From a525dbb2d44b0a5aa307f222cbe7920065cc376f Mon Sep 17 00:00:00 2001 From: Javier Carrillo Date: Thu, 19 Mar 2015 22:27:35 +0100 Subject: [PATCH] [[FIX]] default to empty string in src/cli.js loadIgnores Related to https://github.com/iojs/io.js/pull/1153 --- src/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index 6f06c0c110..9575d4c0f2 100644 --- a/src/cli.js +++ b/src/cli.js @@ -191,7 +191,7 @@ function findFile(name, cwd) { * @return {array} a list of files to ignore. */ function loadIgnores(params) { - var file = findFile(params.excludePath || ".jshintignore", params.cwd); + var file = findFile(params.excludePath || ".jshintignore", params.cwd) || ''; if (!file && !params.exclude) { return [];