summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-11-04 09:52:28 -0500
committercjihrig <cjihrig@gmail.com>2018-11-06 10:58:30 -0500
commit9d68e568569aa9b8ddf387b3d58adb6ae7e3cc22 (patch)
tree340bd790d57157c9e9f6178e7224b10be96892c0 /lib/fs.js
parenta49b672aad41e5f81a87d3df3d97589f031903e7 (diff)
downloadnode-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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fs.js b/lib/fs.js
index dba9049fae..ef516a218c 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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 };