« get me outta code hell

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/TelnetInterfacer.js
diff options
context:
space:
mode:
Diffstat (limited to 'util/TelnetInterfacer.js')
-rw-r--r--util/TelnetInterfacer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/TelnetInterfacer.js b/util/TelnetInterfacer.js
index f9b1c23..410f8e9 100644
--- a/util/TelnetInterfacer.js
+++ b/util/TelnetInterfacer.js
@@ -54,7 +54,7 @@ module.exports = class TelnetInterfacer extends EventEmitter {
     inputLoop: while (true) {
       const data = await waitForData(this.socket)
 
-      for (let command of this.parseTelnetCommands(data)) {
+      for (const command of this.parseTelnetCommands(data)) {
         // WILL NAWS
         if (command[1] === 251 && command[2] === 31) {
           didWillNAWS = true
@@ -87,7 +87,7 @@ module.exports = class TelnetInterfacer extends EventEmitter {
       const values = Array.from(buffer.values())
       const commands = []
       const curCmd = [255]
-      for (let value of values) {
+      for (const value of values) {
         if (value === 255) { // IAC
           commands.push(Array.from(curCmd))
           curCmd.splice(1, curCmd.length)