Skip to content

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

Merged
ezolenko merged 1 commit into
ezolenko:masterfrom
agilgur5:refactor-invert-if-options
Jun 7, 2022
Merged

refactor: invert another if for readabilty -- in get-options-overrides#348
ezolenko merged 1 commit into
ezolenko:masterfrom
agilgur5:refactor-invert-if-options

Conversation

@agilgur5

@agilgur5 agilgur5 commented Jun 6, 2022

Copy link
Copy Markdown
Collaborator

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