🐛 Fix code only running once

This commit is contained in:
C-3PO 2018-10-14 01:15:20 +02:00
parent a14727f3f0
commit a4698d07ab
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -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;