Fix parsing of path-ignore field
This commit is contained in:
parent
28ccc3db2d
commit
e7afa7cb98
2 changed files with 2 additions and 2 deletions
2
lib/config-utils.js
generated
2
lib/config-utils.js
generated
|
|
@ -84,7 +84,7 @@ function initConfig() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const pathsIgnore = parsedYAML['paths-ignore'];
|
const pathsIgnore = parsedYAML['paths-ignore'];
|
||||||
if (pathsIgnore && queries instanceof Array) {
|
if (pathsIgnore && pathsIgnore instanceof Array) {
|
||||||
pathsIgnore.forEach(path => {
|
pathsIgnore.forEach(path => {
|
||||||
if (typeof path === "string") {
|
if (typeof path === "string") {
|
||||||
config.pathsIgnore.push(path);
|
config.pathsIgnore.push(path);
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ function initConfig(): Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
const pathsIgnore = parsedYAML['paths-ignore'];
|
const pathsIgnore = parsedYAML['paths-ignore'];
|
||||||
if (pathsIgnore && queries instanceof Array) {
|
if (pathsIgnore && pathsIgnore instanceof Array) {
|
||||||
pathsIgnore.forEach(path => {
|
pathsIgnore.forEach(path => {
|
||||||
if (typeof path === "string") {
|
if (typeof path === "string") {
|
||||||
config.pathsIgnore.push(path);
|
config.pathsIgnore.push(path);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue