mirror of https://github.com/nodejs/node.git
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
parent
a49b672aad
commit
9d68e56856
|
@ -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 };
|
||||
|
|
Loading…
Reference in New Issue