Merge pull request #5 from github/aibaars-patch-1

Fix parsing of path-ignore field
This commit is contained in:
Arthur Baars 2020-04-29 13:30:56 +02:00 committed by GitHub
commit 72f1ed0be5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
lib/config-utils.js generated
View file

@ -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);

View file

@ -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);