Skip to content

Commit

Permalink
fix: map() should have been forEach()
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Jul 21, 2022
1 parent 64a4fa3 commit 19131c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function loadUserConfigLegacy (commonConfig) {
if (commonConfig.aio.cna !== undefined || commonConfig.aio.app !== undefined) {
aioLogger.warn('App config in \'.aio\' file is deprecated. Please move your \'.aio.app\' or \'.aio.cna\' to \'app.config.yaml\'.')
const appConfig = { ...commonConfig.aio.app, ...commonConfig.aio.cna }
Object.entries(appConfig).map(([k, v]) => {
Object.entries(appConfig).forEach(([k, v]) => {
legacyAppConfig[k] = v
includeIndex[`${defaults.APPLICATION_CONFIG_KEY}.${k}`] = { file: '.aio', key: `app.${k}` }
})
Expand Down

0 comments on commit 19131c2

Please sign in to comment.