From a22b34411cbabacfe5384741f2162c0f8aafde8f Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Thu, 13 Feb 2020 09:31:53 +0100 Subject: [PATCH] fix: linter --- lib/Acho.js | 2 +- lib/Format.js | 4 +--- lib/Util.js | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/Acho.js b/lib/Acho.js index 5d60d00..049c500 100644 --- a/lib/Acho.js +++ b/lib/Acho.js @@ -11,7 +11,7 @@ const Acho = function (opts = {}) { acho.messages = (function () { const messages = {} - for (let type in acho.types) { + for (const type in acho.types) { messages[type] = (opts.messages != null ? opts.messages[type] : undefined) || [] acho[type] = acho.generateTypeMessage(type) diff --git a/lib/Format.js b/lib/Format.js index c476825..6c1be2a 100644 --- a/lib/Format.js +++ b/lib/Format.js @@ -123,9 +123,7 @@ const createFormat = opts => return match }) if (!isEmpty(args)) { - for (let arg of args) { - messages += ` ${serialize(arg, color)}` - } + for (const arg of args) messages += ` ${serialize(arg, color)}` } } diff --git a/lib/Util.js b/lib/Util.js index ff31770..86faa60 100644 --- a/lib/Util.js +++ b/lib/Util.js @@ -10,9 +10,7 @@ const getChalkColor = function (color) { const getColor = function (colors) { let stylize - for (let color of colors) { - stylize = getChalkColor(color) - } + for (const color of colors) stylize = getChalkColor(color) return stylize }