chore: eslint prefer-rest-params, prefer-spread

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:52:25 -07:00
committed by Julian Lam
parent 23f212a4c0
commit 115d19e289
14 changed files with 24 additions and 31 deletions

View File

@@ -124,9 +124,9 @@ Settings.prototype.persist = function (callback) {
if (typeof conf === 'object') {
conf = JSON.stringify(conf);
}
meta.settings.set(this.hash, this.createWrapper(this.cfg.v, conf), function () {
meta.settings.set(this.hash, this.createWrapper(this.cfg.v, conf), (...args) => {
if (typeof callback === 'function') {
callback.apply(_this, arguments || []);
callback.apply(_this, args || []);
}
});
return this;