« 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/ui/DisplayElement.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 /ui/DisplayElement.js
parent553bbf486e043f206bb8f2c92c943fd688f8fedc (diff)
Let-const nitpicks
Diffstat (limited to 'ui/DisplayElement.js')
-rw-r--r--ui/DisplayElement.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/DisplayElement.js b/ui/DisplayElement.js
index 3a97ed9..75263ac 100644
--- a/ui/DisplayElement.js
+++ b/ui/DisplayElement.js
@@ -64,7 +64,7 @@ module.exports = class DisplayElement extends EventEmitter {
     // Runs fixLayout on this as well as all children.
 
     this.fixLayout()
-    for (let child of this.children) {
+    for (const child of this.children) {
       child.fixAllLayout()
     }
   }
@@ -72,7 +72,7 @@ module.exports = class DisplayElement extends EventEmitter {
   drawChildrenTo(writable) {
     // Draws all of the children to a writable.
 
-    for (let child of this.children) {
+    for (const child of this.children) {
       child.renderTo(writable)
     }
   }