From 46ef6bcd1db73dd51f7ecb699ac11faae5c171aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 22 Apr 2021 15:28:19 +0200 Subject: [PATCH] Use "const" for chapters keys Array is reversed but variable holding it is not replaced in this function, so "const" can be used here --- src/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.js b/src/player.js index 90e565ca..9cd74b00 100644 --- a/src/player.js +++ b/src/player.js @@ -429,7 +429,7 @@ class ClapperPlayer extends GstClapper.Clapper return false; const now = this.position / Gst.SECOND; - let chapterTimes = Object.keys(chapters); + const chapterTimes = Object.keys(chapters); if(isPrevious) chapterTimes.reverse();