From 6966c06dd7ebc01e8324d7438ad12db1146a3001 Mon Sep 17 00:00:00 2001 From: Orkun Tokdemir Date: Thu, 8 Aug 2024 14:44:43 +0200 Subject: [PATCH] qt-lib: Fix `existing` function It should return `filePath` instead of the `path` module. Change-Id: Iebbaa373995fb9c24ef8d72b4e3d2d3d9f0e4429 Reviewed-by: Joerg Bornemann --- qt-lib/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-lib/src/util.ts b/qt-lib/src/util.ts index f8773e0..a5d7b7e 100644 --- a/qt-lib/src/util.ts +++ b/qt-lib/src/util.ts @@ -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 ''; }