chore: eslint no-var, vars-on-top

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:06:15 -07:00
committed by Julian Lam
parent b56d9e12b5
commit dab3b23575
255 changed files with 1988 additions and 1995 deletions

View File

@@ -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;
}