chore: Prettified Code

[ci skip]
This commit is contained in:
vapormusic 2022-08-24 16:09:07 +00:00 committed by cider-chore[bot]
parent d2d32556e8
commit c666a76d5c

View file

@ -101,10 +101,9 @@ export default class playbackNotifications {
const dest = createWriteStream(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split("/").pop()}`)); const dest = createWriteStream(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split("/").pop()}`));
// @ts-ignore // @ts-ignore
let stream = res.body.pipe(dest); let stream = res.body.pipe(dest);
stream.on('finish', () =>{ stream.on("finish", () => {
this.createNotification(a); this.createNotification(a);
}); });
}); });
} else { } else {
fetch(a.artwork.url).then(async (blob) => { fetch(a.artwork.url).then(async (blob) => {