Skip to content

Commit 1f3cb63

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap/node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@
685685
function tryGetCwd(path) {
686686
try {
687687
return process.cwd();
688-
} catch (ex) {
688+
} catch {
689689
// getcwd(3) can fail if the current working directory has been deleted.
690690
// Fall back to the directory name of the (absolute) executable path.
691691
// It's not really correct but what are the alternatives?

0 commit comments

Comments
 (0)