Skip to content

Commit

Permalink
[[FIX]] default to empty string in src/cli.js loadIgnores
Browse files Browse the repository at this point in the history
Related to nodejs/node#1153
  • Loading branch information
stringparser committed Mar 19, 2015
1 parent 12811e7 commit 0eeba14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 0eeba14

Please sign in to comment.