Skip to content

Commit 97a22a9

Browse files
committed
src: remove redundant if block
`void LoadEnvironment(Environment* env)` had a redundant if block at the end of the function.
1 parent da9a4d0 commit 97a22a9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/node.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,11 +1166,7 @@ void LoadEnvironment(Environment* env) {
11661166
loader_exports.ToLocalChecked(),
11671167
Boolean::New(isolate, env->is_main_thread())};
11681168

1169-
if (ExecuteBootstrapper(
1170-
env, "internal/bootstrap/node", &node_params, &node_args)
1171-
.IsEmpty()) {
1172-
return;
1173-
}
1169+
ExecuteBootstrapper(env, "internal/bootstrap/node", &node_params, &node_args);
11741170
}
11751171

11761172
static void StartInspector(Environment* env, const char* path) {

0 commit comments

Comments
 (0)