refactor: 🔨 use rest spread replace prototype.push.apply
This commit is contained in:
parent
6732d2bdcd
commit
6a2bcd529a
|
@ -379,8 +379,7 @@ class Storage {
|
||||||
return options.callback(err);
|
return options.callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
const propertyToKeep = [];
|
const propertyToKeep = [...WHITELIST];
|
||||||
Array.prototype.push.apply(propertyToKeep, WHITELIST);
|
|
||||||
if (options.keepUpLinkData === true) {
|
if (options.keepUpLinkData === true) {
|
||||||
propertyToKeep.push('_uplinks');
|
propertyToKeep.push('_uplinks');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue