Skip to content

Commit

Permalink
src: remove redundant if block
Browse files Browse the repository at this point in the history
`void LoadEnvironment(Environment* env)` had a redundant if block at
the end of the function.
  • Loading branch information
kkty committed Jan 1, 2019
1 parent da9a4d0 commit 97a22a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1166,11 +1166,7 @@ void LoadEnvironment(Environment* env) {
loader_exports.ToLocalChecked(),
Boolean::New(isolate, env->is_main_thread())};

if (ExecuteBootstrapper(
env, "internal/bootstrap/node", &node_params, &node_args)
.IsEmpty()) {
return;
}
ExecuteBootstrapper(env, "internal/bootstrap/node", &node_params, &node_args);
}

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

0 comments on commit 97a22a9

Please sign in to comment.