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

Remove unnecessary nullish check #1681

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Remove unnecessary nullish check #1681

merged 1 commit into from
Jun 13, 2023

Conversation

nmattia
Copy link
Collaborator

@nmattia nmattia commented Jun 12, 2023

At some point, latest was potentially undefined so we checked before yielding it. Some time after that, the value was made mandatory, but the check was never removed.

At some point, `latest` was potentially `undefined` so we checked before
`yield`ing it. Some time after that, the value was made mandatory, but
the check was never removed.
Copy link
Collaborator

@meodai meodai left a comment

Choose a reason for hiding this comment

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

LGTM!

@nmattia nmattia added this pull request to the merge queue Jun 13, 2023
Merged via the queue into main with commit 901c65a Jun 13, 2023
@nmattia nmattia deleted the nm-no-non-null branch June 13, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants