mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -65,7 +65,7 @@ exports.doTopicAction = async function (action, event, caller, { tids }) {
|
||||
|
||||
async function logTopicAction(action, req, tid, title) {
|
||||
// Only log certain actions to system event log
|
||||
var actionsToLog = ['delete', 'restore', 'purge'];
|
||||
const actionsToLog = ['delete', 'restore', 'purge'];
|
||||
if (!actionsToLog.includes(action)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user