We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f185a commit d59dc0dCopy full SHA for d59dc0d
lib/fs.js
@@ -209,7 +209,7 @@ function exists(path, callback) {
209
210
try {
211
fs.access(path, F_OK, suppressedCallback);
212
- } catch (err) {
+ } catch {
213
return callback(false);
214
}
215
@@ -230,7 +230,7 @@ function existsSync(path) {
230
231
path = toPathIfFileURL(path);
232
validatePath(path);
233
- } catch (e) {
234
return false;
235
236
const ctx = { path };
0 commit comments