mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Removed useless check in fieldsArray
This commit is contained in:
@@ -27,7 +27,7 @@ export default class FieldsArray extends Array {
|
|||||||
return acc;
|
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.`);
|
fieldsDebug(`Field with key "${current.key}" discarded: fields must be unique in pass scope.`);
|
||||||
} else {
|
} else {
|
||||||
this[poolSymbol].add(current.key);
|
this[poolSymbol].add(current.key);
|
||||||
|
|||||||
Reference in New Issue
Block a user