chore: eslint prefer-template

This commit is contained in:
Peter Jaszkowiak
2021-02-03 23:59:08 -07:00
committed by Julian Lam
parent 4ee0f1459d
commit 707b55b6a5
357 changed files with 2425 additions and 2427 deletions

View File

@@ -11,7 +11,7 @@ hooksController.get = function (req, res) {
const current = {
hookName: key,
methods: [],
index: 'hook-' + hookIndex,
index: `hook-${hookIndex}`,
count: plugins.loadedHooks[key].length,
};
@@ -20,7 +20,7 @@ hooksController.get = function (req, res) {
id: hookData.id,
priority: hookData.priority,
method: hookData.method ? validator.escape(hookData.method.toString()) : 'No plugin function!',
index: hookIndex + '-code-' + methodIndex,
index: `${hookIndex}-code-${methodIndex}`,
});
});
hooks.push(current);