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 e2b96da commit 0600e75Copy full SHA for 0600e75
lib/internal/bootstrap/node.js
@@ -554,7 +554,7 @@
554
function tryGetCwd(path) {
555
try {
556
return process.cwd();
557
- } catch (ex) {
+ } catch {
558
// getcwd(3) can fail if the current working directory has been deleted.
559
// Fall back to the directory name of the (absolute) executable path.
560
// It's not really correct but what are the alternatives?
0 commit comments