fix(config): no legacy over non-legacy override (#2644)

Do not take legacy property into account if there's non-legacy value.
This commit is contained in:
Paweł Domas 2018-03-22 10:57:08 -05:00 committed by Дамян Минков
parent de0a7bfcd3
commit 15e1633d86
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ function _translateLegacyConfig(oldValue: Object) {
/* eslint-enable indent */ /* eslint-enable indent */
if (oldKey in newValue) { if (oldKey in newValue && !(newKey in newValue.p2p)) {
const v = newValue[oldKey]; const v = newValue[oldKey];
// Do not modify oldValue. // Do not modify oldValue.