Skip to content

Commit a525dbb

Browse files
stringparserjugglinmike
authored andcommitted
[[FIX]] default to empty string in src/cli.js loadIgnores
Related to nodejs/node#1153
1 parent 7307172 commit a525dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function findFile(name, cwd) {
191191
* @return {array} a list of files to ignore.
192192
*/
193193
function loadIgnores(params) {
194-
var file = findFile(params.excludePath || ".jshintignore", params.cwd);
194+
var file = findFile(params.excludePath || ".jshintignore", params.cwd) || '';
195195

196196
if (!file && !params.exclude) {
197197
return [];

0 commit comments

Comments
 (0)