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>
pull/24079/head
cjihrig 2018-11-04 09:52:28 -05:00
parent a49b672aad
commit 9d68e56856
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5
1 changed files with 2 additions and 2 deletions

View File

@ -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 };