diff --git a/lib/Common.js b/lib/Common.js index 3674911e..b6d3fce4 100644 --- a/lib/Common.js +++ b/lib/Common.js @@ -234,9 +234,9 @@ Common.parseConfig = function(confObj, filename) { return yamljs.parse(confObj.toString()); } else if (filename.indexOf('.config.js') > -1) { - var confPath = require.resolve(path.resolve(filename)); - delete require.cache[confPath]; - return require(confPath); + var confPath = require.resolve(path.resolve(filename)); + delete require.cache[confPath]; + return require(confPath); } };