diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /fs/exists.ts | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
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 */ |
