fix formatting

This commit is contained in:
Rowanda 2024-12-12 20:43:40 -08:00
parent 977e50faa0
commit 256832dab6

View File

@ -15,13 +15,13 @@ export const downloadFile = function (fileUrl: string, targetPath: string) {
.then((res) => {
const out = fs.createWriteStream(targetPath);
res.data.pipe(out);
res.data.pipe(out);
out.on("finish", resolve);
out.on("finish", resolve);
out.on("error", reject);
out.on("error", reject);
res.data.on("error", reject);
}).catch(reject);
res.data.on("error", reject);
}).catch(reject);
});
};