Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 6, 2022
1 parent fb9de42 commit 4b81a8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/normalize/lib/modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ const renameProp = async function (value, rename, opts) {
return
}

const name = String(await callValueFunc(rename, value, opts))
const name = await callValueFunc(rename, value, opts)

if (typeof name !== 'string') {
return
}

return has(opts.funcOpts.config, name) ? undefined : name
}

0 comments on commit 4b81a8b

Please sign in to comment.