mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-01-20 17:10:31 +01:00
fix formatting
This commit is contained in:
parent
977e50faa0
commit
256832dab6
@ -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);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user