diff --git a/lib/core/config.js b/lib/core/config.js index 7a7482d5..c1aeaa85 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -25,8 +25,7 @@ Config.prototype.loadConfigFiles = function(options) { interceptLogs = true; } - var embarkConfigExists = fs.existsSync(options.embarkConfig); - if(!embarkConfigExists){ + if(!fs.existsSync(options.embarkConfig)){ this.logger.error('Cannot find file ' + options.embarkConfig + '. Please ensure you are running this command inside the Dapp folder'); process.exit(1); }