From 1c9377ec696c1f8269bf30a7af1e4a9566d55625 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sat, 20 Jul 2024 14:05:47 +0200 Subject: update eslint, ts-for-gir --- gjs/src/file.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gjs/src/file.ts') diff --git a/gjs/src/file.ts b/gjs/src/file.ts index d15474b..8875833 100644 --- a/gjs/src/file.ts +++ b/gjs/src/file.ts @@ -9,7 +9,8 @@ export function readFileAsync(path: string): Promise { Astal.read_file_async(path, (_, res) => { try { resolve(Astal.read_file_finish(res) || "") - } catch (error) { + } + catch (error) { reject(error) } }) @@ -25,7 +26,8 @@ export function writeFileAsync(path: string, content: string): Promise { Astal.write_file_async(path, content, (_, res) => { try { resolve(Astal.write_file_finish(res)) - } catch (error) { + } + catch (error) { reject(error) } }) -- cgit v1.2.3