Skip to content

Commit

Permalink
qt-lib: Fix existing function
Browse files Browse the repository at this point in the history
It should return `filePath` instead of the `path` module.

Change-Id: Iebbaa373995fb9c24ef8d72b4e3d2d3d9f0e4429
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
OrkunTokdemir committed Aug 8, 2024
1 parent d50fccb commit 6966c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qt-lib/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function exists(filePath: string) {
export async function existing(filePath: string) {
try {
await fs.access(filePath);
return path;
return filePath;
} catch {
return '';
}
Expand Down

0 comments on commit 6966c06

Please sign in to comment.