Skip to content

Commit

Permalink
fix cache check
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHom committed Jun 11, 2017
1 parent 0a1005e commit 0b75549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ignored-paths.js
Expand Up @@ -163,7 +163,7 @@ class IgnoredPaths {
* @returns {array} raw ignore rules
*/
readIgnoreFile(filePath) {
if (!this.cache[filePath]) {
if (typeof this.cache[filePath] === "undefined") {
this.cache[filePath] = fs.readFileSync(filePath, "utf8");
}
return this.cache[filePath];
Expand Down

0 comments on commit 0b75549

Please sign in to comment.