Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 13, 2020
1 parent 70e0ef2 commit a22b344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Acho.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions lib/Format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`
}
}

Expand Down
4 changes: 1 addition & 3 deletions lib/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a22b344

Please sign in to comment.