Skip to content

Commit a5462ba

Browse files
cjihrigMylesBorins
authored andcommitted
fs: remove unused catch bindings
PR-URL: #24079 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Wyatt Preul <[email protected]>
1 parent 95814f2 commit a5462ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function exists(path, callback) {
202202

203203
try {
204204
fs.access(path, F_OK, suppressedCallback);
205-
} catch (err) {
205+
} catch {
206206
return callback(false);
207207
}
208208
}
@@ -223,7 +223,7 @@ function existsSync(path) {
223223
try {
224224
path = toPathIfFileURL(path);
225225
validatePath(path);
226-
} catch (e) {
226+
} catch {
227227
return false;
228228
}
229229
const ctx = { path };

0 commit comments

Comments
 (0)