From d692c9317c5a131101037524fb8156bcc1b39e2e Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sat, 23 Dec 2017 00:08:46 -0800 Subject: [PATCH] After ESLint in BrailleBuffer --- src/BrailleBuffer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BrailleBuffer.js b/src/BrailleBuffer.js index 6266030..56ccdac 100644 --- a/src/BrailleBuffer.js +++ b/src/BrailleBuffer.js @@ -31,7 +31,7 @@ const termReset = '\x1B[39;49m'; class BrailleBuffer { constructor(width, height) { - this.brailleMap = [[0x1, 0x8],[0x2, 0x10],[0x4, 0x20],[0x40, 0x80]] + this.brailleMap = [[0x1, 0x8],[0x2, 0x10],[0x4, 0x20],[0x40, 0x80]]; this.pixelBuffer = null; this.charBuffer = null; @@ -67,7 +67,7 @@ class BrailleBuffer { setBackground(x, y, color) { if (0 <= x && x < this.width && 0 <= y && y < this.height) { - idx = this._project(x, y); + const idx = this._project(x, y); this.backgroundBuffer[idx] = color; } }