Skip to content

Commit 693b2e7

Browse files
cjihrigcodebytere
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 b885695 commit 693b2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@
554554
function tryGetCwd(path) {
555555
try {
556556
return process.cwd();
557-
} catch (ex) {
557+
} catch {
558558
// getcwd(3) can fail if the current working directory has been deleted.
559559
// Fall back to the directory name of the (absolute) executable path.
560560
// It's not really correct but what are the alternatives?

0 commit comments

Comments
 (0)