summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-07-02 11:41:33 +0000
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-07-02 11:41:33 +0000
commit6b909d95ec07848136a6f337db28318c1cd46c60 (patch)
tree129adbc4919e17e7a28ba30f374f577ec66a6055 /lib
parent226ad561a01402590ebf3fa61912fd5d8f93f632 (diff)
Use correct var for let
Diffstat (limited to 'lib')
-rw-r--r--lib/screens/circle.js4
1 files changed, 2 insertions, 2 deletions
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)} `;
}
}