From a08610c914e534b615e875d4ac43e0a1b59a2894 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alvaro=20Cabrera=20Dur=C3=A1n?= <pateketrueke@gmail.com>
Date: Thu, 10 Oct 2019 01:25:39 -0500
Subject: [PATCH] Cleanup

---
 .travis.yml          | 2 ++
 src/core/run.js      | 2 +-
 src/core/traverse.js | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 742339df..b9b724d7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,8 @@ node_js:
   - 8
   - 9
   - 10
+  - 11
+  - 12
 before_script:
   - npm run build
 script:
diff --git a/src/core/run.js b/src/core/run.js
index f8b97967..964ede10 100644
--- a/src/core/run.js
+++ b/src/core/run.js
@@ -174,7 +174,7 @@ function run(refs, schema, container) {
         // this is the only case where all sub-schemas
         // must be resolved before any merge
         schemas.forEach(subSchema => {
-          const _sub = reduce(subSchema, null, rootPath, parentSchema);
+          const _sub = reduce(subSchema, null, rootPath);
 
           // call given thunks if present
           utils.merge(sub, typeof _sub.thunk === 'function'
diff --git a/src/core/traverse.js b/src/core/traverse.js
index f68c8f16..40f61df8 100644
--- a/src/core/traverse.js
+++ b/src/core/traverse.js
@@ -7,7 +7,7 @@ import optionAPI from '../api/option';
 
 // TODO provide types
 function traverse(schema, path, resolve, rootSchema) {
-  schema = resolve(schema, null, path, rootSchema);
+  schema = resolve(schema, null, path);
 
   if (!schema) {
     return;
-- 
GitLab