Skip to content

Commit

Permalink
fs: remove unused catch bindings
Browse files Browse the repository at this point in the history
PR-URL: #24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Nov 6, 2018
1 parent f9f185a commit d59dc0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function exists(path, callback) {

try {
fs.access(path, F_OK, suppressedCallback);
} catch (err) {
} catch {
return callback(false);
}
}
Expand All @@ -230,7 +230,7 @@ function existsSync(path) {
try {
path = toPathIfFileURL(path);
validatePath(path);
} catch (e) {
} catch {
return false;
}
const ctx = { path };
Expand Down

0 comments on commit d59dc0d

Please sign in to comment.