From 19b4d6d53164a42e4b9c82bf3a591c4efa66de77 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Thu, 9 Nov 2023 12:41:02 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- src/extractors/rapidcloud.ts | 4 ++-- src/extractors/vidcloud.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/extractors/rapidcloud.ts b/src/extractors/rapidcloud.ts index 995b8118d..ea3088e04 100644 --- a/src/extractors/rapidcloud.ts +++ b/src/extractors/rapidcloud.ts @@ -58,8 +58,8 @@ class RapidCloud extends VideoExtractor { let extractedKey = ''; let currentIndex = 0; for (const index of decryptKey) { - let start = index[0] + currentIndex; - let end = start + index[1]; + const start = index[0] + currentIndex; + const end = start + index[1]; for (let i = start; i < end; i++) { extractedKey += res.data.sources[i]; sourcesArray[i] = ''; diff --git a/src/extractors/vidcloud.ts b/src/extractors/vidcloud.ts index fe02dbd38..01ab095c7 100644 --- a/src/extractors/vidcloud.ts +++ b/src/extractors/vidcloud.ts @@ -51,8 +51,8 @@ class VidCloud extends VideoExtractor { let currentIndex = 0; for (const index of key) { - let start = index[0] + currentIndex; - let end = start + index[1]; + const start = index[0] + currentIndex; + const end = start + index[1]; for (let i = start; i < end; i++) { extractedKey += res.data.sources[i]; sourcesArray[i] = '';