Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: remove redundant if block #25304

Closed
wants to merge 1 commit into from

Conversation

kkty
Copy link
Contributor

@kkty kkty commented Jan 1, 2019

void LoadEnvironment(Environment* env) had a redundant if block at
the end of the function.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jan 1, 2019
src/node.cc Outdated
return;
}
ExecuteBootstrapper(
env, "internal/bootstrap/node", &node_params, &node_args);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can all fit on one line now?

Copy link
Contributor Author

@kkty kkty Jan 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mscdex Thank you for pointing that out. I updated PR.

`void LoadEnvironment(Environment* env)` had a redundant if block at
the end of the function.
@kkty kkty force-pushed the remove-redundant-if-block branch from a15ff06 to 97a22a9 Compare January 1, 2019 21:31
@addaleax
Copy link
Member

addaleax commented Jan 7, 2019

@kkty This would need a rebase, but I’m not sure that it still applies to the current code?

@kkty
Copy link
Contributor Author

kkty commented Jan 8, 2019

@addaleax It seems that this change is no longer necessary thanks to #25320.
I will close this issue.

@kkty kkty closed this Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants