mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
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);
|
||||
}
|
||||
|
||||
const propertyToKeep = [];
|
||||
Array.prototype.push.apply(propertyToKeep, WHITELIST);
|
||||
const propertyToKeep = [...WHITELIST];
|
||||
if (options.keepUpLinkData === true) {
|
||||
propertyToKeep.push('_uplinks');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user