diff --git a/config/config.js b/config/config.js index da02293364..624cf2ce3f 100644 --- a/config/config.js +++ b/config/config.js @@ -19,7 +19,7 @@ var getGlobbedPaths = function (globPatterns, excludes) { // The output array var output = []; - // If glob pattern is array so we use each pattern in a recursive way, otherwise we use glob + // If glob pattern is array then we use each pattern in a recursive way, otherwise we use glob if (_.isArray(globPatterns)) { globPatterns.forEach(function (globPattern) { output = _.union(output, getGlobbedPaths(globPattern, excludes)); @@ -49,7 +49,7 @@ var getGlobbedPaths = function (globPatterns, excludes) { }; /** - * Validate NODE_ENV existance + * Validate NODE_ENV existence */ var validateEnvironmentVariable = function () { var environmentFiles = glob.sync('./config/env/' + process.env.NODE_ENV + '.js'); @@ -140,7 +140,7 @@ var initGlobalConfigFiles = function (config, assets) { * Initialize global configuration */ var initGlobalConfig = function () { - // Validate NDOE_ENV existance + // Validate NODE_ENV existence validateEnvironmentVariable(); // Get the default assets