« get me outta code hell

Let-const nitpicks - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/util/wrap.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-05-31 00:00:45 -0300
committerFlorrie <towerofnix@gmail.com>2018-05-31 00:00:45 -0300
commitf2676294c95695e2de3a7fb88eafae76d6827618 (patch)
treedf80695b3e35bda8e40f5dccc7f21fb8875e7f76 /util/wrap.js
parent553bbf486e043f206bb8f2c92c943fd688f8fedc (diff)
Let-const nitpicks
Diffstat (limited to 'util/wrap.js')
-rw-r--r--util/wrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/wrap.js b/util/wrap.js
index 78e5233..3c381d4 100644
--- a/util/wrap.js
+++ b/util/wrap.js
@@ -7,7 +7,7 @@ module.exports = function wrap(str, width) {
 
   let curLine = words[0]
 
-  for (let word of words.slice(1)) {
+  for (const word of words.slice(1)) {
     if (curLine.length + word.length > width) {
       lines.push(curLine)
       curLine = word