mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -78,7 +78,7 @@ function Settings(hash, version, defCfg, callback, forceUpdate, reset) {
|
||||
this.checkStructure(callback, forceUpdate);
|
||||
});
|
||||
}
|
||||
pubsub.on(`action:settings.set.${hash}`, function (data) {
|
||||
pubsub.on(`action:settings.set.${hash}`, (data) => {
|
||||
try {
|
||||
self.cfg._ = JSON.parse(data._);
|
||||
} catch (err) {}
|
||||
@@ -96,7 +96,7 @@ Settings.prototype.version = '0.0.0';
|
||||
*/
|
||||
Settings.prototype.sync = function (callback) {
|
||||
var _this = this;
|
||||
meta.settings.get(this.hash, function (err, settings) {
|
||||
meta.settings.get(this.hash, (err, settings) => {
|
||||
try {
|
||||
if (settings._) {
|
||||
settings._ = JSON.parse(settings._);
|
||||
|
||||
Reference in New Issue
Block a user