diff options
Diffstat (limited to 'fs/exists.ts')
| -rw-r--r-- | fs/exists.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exists.ts b/fs/exists.ts index ce4b83a4c..4638630fd 100644 --- a/fs/exists.ts +++ b/fs/exists.ts @@ -3,8 +3,8 @@ /** Test whether or not the given path exists by checking with the file system */ export async function exists(filePath: string): Promise<boolean> { return Deno.lstat(filePath) - .then(() => true) - .catch(() => false); + .then((): boolean => true) + .catch((): boolean => false); } /** Test whether or not the given path exists by checking with the file system */ |
