From: Ruben Beltran del Rio Date: Sun, 2 Jul 2023 11:41:33 +0000 (+0000) Subject: Use correct var for let X-Git-Url: https://git.r.bdr.sh/rbdr/tomato-sauce/commitdiff_plain?ds=sidebyside Use correct var for let --- diff --git a/lib/screens/circle.js b/lib/screens/circle.js index 2c9a0bd..f5d37e3 100644 --- a/lib/screens/circle.js +++ b/lib/screens/circle.js @@ -8,7 +8,7 @@ */ module.exports = function (modulation, width, height, renderer) { - const response = []; + let response = []; const circles = width > height ? height : width; @@ -26,7 +26,7 @@ module.exports = function (modulation, width, height, renderer) { const y = Math.round(centerY + Math.cos(angle) * i); if (x <= width && x > 0 && y <= height && y > 0) { - let position = `\x1B[${y};${x}H`; // Move cursor to y,x (CSI y;x H) + const position = `\x1B[${y};${x}H`; // Move cursor to y,x (CSI y;x H) response += `${position}${renderer(red, blue, green)} `; } }