From 9f71865570db7114c603b650a4a5b1b1c4d2163c Mon Sep 17 00:00:00 2001 From: Martin Thielecke Date: Tue, 12 May 2020 15:53:24 +0200 Subject: [PATCH] change variable to constant in loop --- static/collector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/collector.js b/static/collector.js index be29da9..8d9a2dd 100755 --- a/static/collector.js +++ b/static/collector.js @@ -13,7 +13,7 @@ function TwitchCollector(interval = 2e4) { function _update(data) { _data = data; - for (let hook of _hooks.update) { + for (const hook of _hooks.update) { hook(data); } }