From e7afa7cb98f20e994515b5ce1360761203624049 Mon Sep 17 00:00:00 2001
From: Arthur Baars <aibaars@github.com>
Date: Wed, 29 Apr 2020 13:07:24 +0200
Subject: [PATCH] Fix parsing of path-ignore field

---
 lib/config-utils.js | 2 +-
 src/config-utils.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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