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 authored and jugglinmike committed Apr 12, 2015
1 parent 7307172 commit a525dbb
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 a525dbb

Please sign in to comment.