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

refactor: invert another if for readabilty -- in get-options-overrides #348

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

agilgur5
Copy link
Collaborator

@agilgur5 agilgur5 commented Jun 6, 2022

Summary

Invert an if conditional in get-options-overrides for readability

Details

  • my previous commit was mostly focused on index.ts, this one is for get-options-overrides -- in general, I'm just trying to old code more readable as I come across and then realize that the code can be re-written better, or, in this case, a conditional inverted

Review Notes

This one's not a big improvement either way and not a complete inversion (it's just an early return of the same final return), so also feel free to reject this. I don't feel strongly about it, but figured I might as well rewrite it to follow the same kind of style found elsewhere

- my previous commit was mostly focused on index.ts, this one is for
  get-options-overrides -- in general, I'm just trying to make old code
  more readable as I come across and then realize that the code can be
  re-written better, or, in this case, a conditional inverted
@agilgur5 agilgur5 added the kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs label Jun 6, 2022
@ezolenko ezolenko merged commit d9fc987 into ezolenko:master Jun 7, 2022
@agilgur5 agilgur5 deleted the refactor-invert-if-options branch July 2, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants