From 6776e5947ce7b32bf00c3b4196e7ffd4a6f8d39a Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Thu, 11 Apr 2019 06:54:18 +0200 Subject: [PATCH] fix(utils/file): fixes exists to return void as per typings --- src/utils/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file.ts b/src/utils/file.ts index 47f2327..75dbf2a 100644 --- a/src/utils/file.ts +++ b/src/utils/file.ts @@ -28,7 +28,7 @@ export async function exists(file: string): Promise { await ensure.rejection(() => { return new Promise((resolve, reject) => { fs.access(file, fs.constants.F_OK, (err) => { - return err ? reject(Error(`${file} doesn't exist`)) : resolve(file); + return err ? reject(Error(`${file} doesn't exist`)) : resolve(); }); }); });