diff --git a/lib/command-group.js b/lib/command-group.js index 4dcb8d8..89de5cd 100644 --- a/lib/command-group.js +++ b/lib/command-group.js @@ -1,14 +1,13 @@ -"use strict"; - const defaultCommand = require('./default-command'); const commands = { }; -for (let [key, value] of Object.entries(defaultCommand)) { - value.forEach(function(element) { +// eslint-disable-next-line no-restricted-syntax +for (const [key, value] of Object.entries(defaultCommand)) { + value.forEach((element) => { commands[element.toLowerCase()] = key.toLowerCase(); - }) + }); } -module.exports = commands; \ No newline at end of file +module.exports = commands;