From 226ad561a01402590ebf3fa61912fd5d8f93f632 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 2 Jul 2023 11:39:37 +0000 Subject: Use let instead of const for circle --- lib/screens/circle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/screens/circle.js b/lib/screens/circle.js index 720e250..2c9a0bd 100644 --- a/lib/screens/circle.js +++ b/lib/screens/circle.js @@ -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) { - const position = `\x1B[${y};${x}H`; // Move cursor to y,x (CSI y;x H) + let position = `\x1B[${y};${x}H`; // Move cursor to y,x (CSI y;x H) response += `${position}${renderer(red, blue, green)} `; } } -- cgit