mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -55,11 +55,11 @@ module.exports = function (opts) {
|
||||
cache.misses = 0;
|
||||
}
|
||||
|
||||
pubsub.on(`${cache.name}:cache:reset`, function () {
|
||||
pubsub.on(`${cache.name}:cache:reset`, () => {
|
||||
localReset();
|
||||
});
|
||||
|
||||
pubsub.on(`${cache.name}:cache:del`, function (keys) {
|
||||
pubsub.on(`${cache.name}:cache:del`, (keys) => {
|
||||
if (Array.isArray(keys)) {
|
||||
keys.forEach(key => cacheDel.apply(cache, [key]));
|
||||
}
|
||||
@@ -71,7 +71,7 @@ module.exports = function (opts) {
|
||||
}
|
||||
let data;
|
||||
let isCached;
|
||||
const unCachedKeys = keys.filter(function (key) {
|
||||
const unCachedKeys = keys.filter((key) => {
|
||||
data = cache.get(key);
|
||||
isCached = data !== undefined;
|
||||
if (isCached) {
|
||||
|
||||
Reference in New Issue
Block a user