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 95814f2 commit a5462baCopy full SHA for a5462ba
lib/fs.js
@@ -202,7 +202,7 @@ function exists(path, callback) {
202
203
try {
204
fs.access(path, F_OK, suppressedCallback);
205
- } catch (err) {
+ } catch {
206
return callback(false);
207
}
208
@@ -223,7 +223,7 @@ function existsSync(path) {
223
224
path = toPathIfFileURL(path);
225
validatePath(path);
226
- } catch (e) {
227
return false;
228
229
const ctx = { path };
0 commit comments