Skip to content

Commit

Permalink
#44 Use forEach instead of map
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsevcik committed Dec 4, 2017
1 parent c4f821a commit d0d6b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {

let allowedKeys = options.clientAllowedKeys || [];

allowedKeys.map(key => {
allowedKeys.forEach(key => {
if (loadedConfig.parsed[key] === undefined) {
let errMsg = '[ember-cli-dotenv]: Required environment variable \'' + key + '\' is missing.';
if (options.failOnMissingKey) {
Expand Down

0 comments on commit d0d6b79

Please sign in to comment.