Skip to content

Commit

Permalink
Merge pull request jshint#2266 from stringparser/iojs-v1.6.0/lib/path…
Browse files Browse the repository at this point in the history
….js-type-checking

[[FIX]] default to empty string in src/cli.js loadIgnores
  • Loading branch information
rwaldron authored and jugglinmike committed Apr 12, 2015
2 parents 6144cad + a525dbb commit bade6b9
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 bade6b9

Please sign in to comment.