mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
chore: eslint prefer-rest-params, prefer-spread
This commit is contained in:
committed by
Julian Lam
parent
23f212a4c0
commit
115d19e289
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user