Removed useless check in fieldsArray

This commit is contained in:
Alexander Cerutti
2019-06-15 22:08:50 +02:00
parent 97ac79f2f4
commit e83906102c

View File

@@ -27,7 +27,7 @@ export default class FieldsArray extends Array {
return acc;
}
if (acc.some(e => e.key === current.key) || this[poolSymbol].has(current.key)) {
if (this[poolSymbol].has(current.key)) {
fieldsDebug(`Field with key "${current.key}" discarded: fields must be unique in pass scope.`);
} else {
this[poolSymbol].add(current.key);