Skip to content

Commit

Permalink
SongDownloader - Fix file exists check ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Dec 24, 2024
1 parent bfd0620 commit 22bfa69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/_lib/native/downloadTrack.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const addTags = async (extPlaybackInfo: ExtendedPlayackInfo, stream: Readable, m

const exists = (path: string): Promise<boolean> =>
stat(path)
.catch(() => false)
.then(() => true);
.then(() => true)
.catch(() => false);

export type PathInfo = {
fileName?: string;
Expand Down

0 comments on commit 22bfa69

Please sign in to comment.