From 64fdc691c4f3b2508eab7ea54585a15303eb1919 Mon Sep 17 00:00:00 2001 From: emizzle Date: Fri, 12 Oct 2018 10:14:29 +1100 Subject: [PATCH] Clean up --- lib/modules/pipeline/webpackConfigReader.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/modules/pipeline/webpackConfigReader.js b/lib/modules/pipeline/webpackConfigReader.js index ce0a1d72..57c69922 100644 --- a/lib/modules/pipeline/webpackConfigReader.js +++ b/lib/modules/pipeline/webpackConfigReader.js @@ -26,14 +26,7 @@ class WebpackConfigReader { // + array of named config objects // + config object if (typeof config === 'function') { - // if(Promise.resolve(config)){ - // return config(this.webpackConfigName).then(config => { - // callback(null, config); - // }); - // } - config = await config(this.webpackConfigName); - //return callback(null, config); } else if (Array.isArray(config)) { config = config.filter(cfg => cfg.name === this.webpackConfigName); if (!config.length) { @@ -43,7 +36,6 @@ class WebpackConfigReader { console.warn(`detected ${config.length} webpack configs having the name '${this.webpackConfigName}', using the first one`); } config = config[0]; - //return callback(null, config); } callback(null, config); } catch (e) {