From a4698d07abc05ba5aa730e3e125c51fc3abb1d64 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 14 Oct 2018 01:15:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20code=20only=20running=20on?= =?UTF-8?q?ce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/downloadWrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdn/downloadWrapper.ts b/src/cdn/downloadWrapper.ts index 2b1d1cb..f47866b 100644 --- a/src/cdn/downloadWrapper.ts +++ b/src/cdn/downloadWrapper.ts @@ -24,7 +24,7 @@ export default async function downloadWrapper({ host, path, size, useCurl = fals //Download either via curl or natively with Node if (useCurl) { //Try up to three times - for (let i = 0; i < 3; i += 3) { + for (let i = 0; i < 3; i += 1) { try { const downloadResult = await downloadWithCurl({ host, path, tempFileName }); return downloadResult;