diff options
author | cjihrig <cjihrig@gmail.com> | 2018-11-04 09:52:28 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-11-06 10:58:30 -0500 |
commit | 9d68e568569aa9b8ddf387b3d58adb6ae7e3cc22 (patch) | |
tree | 340bd790d57157c9e9f6178e7224b10be96892c0 /lib/fs.js | |
parent | a49b672aad41e5f81a87d3df3d97589f031903e7 (diff) | |
download | node-new-9d68e568569aa9b8ddf387b3d58adb6ae7e3cc22.tar.gz |
fs: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to 'lib/fs.js')
-rw-r--r-- | lib/fs.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -209,7 +209,7 @@ function exists(path, callback) { try { fs.access(path, F_OK, suppressedCallback); - } catch (err) { + } catch { return callback(false); } } @@ -230,7 +230,7 @@ function existsSync(path) { try { path = toPathIfFileURL(path); validatePath(path); - } catch (e) { + } catch { return false; } const ctx = { path }; |