Skip to content

Commit d59dc0d

Browse files
cjihrigtargos
authored andcommitted
fs: remove unused catch bindings
PR-URL: #24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
1 parent f9f185a commit d59dc0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function exists(path, callback) {
209209

210210
try {
211211
fs.access(path, F_OK, suppressedCallback);
212-
} catch (err) {
212+
} catch {
213213
return callback(false);
214214
}
215215
}
@@ -230,7 +230,7 @@ function existsSync(path) {
230230
try {
231231
path = toPathIfFileURL(path);
232232
validatePath(path);
233-
} catch (e) {
233+
} catch {
234234
return false;
235235
}
236236
const ctx = { path };

0 commit comments

Comments
 (0)