diff --git a/lib/config-utils.js b/lib/config-utils.js index ae4414430..20c2e5945 100644 --- a/lib/config-utils.js +++ b/lib/config-utils.js @@ -84,7 +84,7 @@ function initConfig() { }); } const pathsIgnore = parsedYAML['paths-ignore']; - if (pathsIgnore && queries instanceof Array) { + if (pathsIgnore && pathsIgnore instanceof Array) { pathsIgnore.forEach(path => { if (typeof path === "string") { config.pathsIgnore.push(path); diff --git a/src/config-utils.ts b/src/config-utils.ts index 5221e5906..407fb5ac0 100644 --- a/src/config-utils.ts +++ b/src/config-utils.ts @@ -91,7 +91,7 @@ function initConfig(): Config { } const pathsIgnore = parsedYAML['paths-ignore']; - if (pathsIgnore && queries instanceof Array) { + if (pathsIgnore && pathsIgnore instanceof Array) { pathsIgnore.forEach(path => { if (typeof path === "string") { config.pathsIgnore.push(path);