Skip to content

Remove cases from ResultsApp that seem to be impossible#3359

Merged
robertbrignull merged 2 commits intomainfrom
robertbrignull/resultsapp
Feb 14, 2024
Merged

Remove cases from ResultsApp that seem to be impossible#3359
robertbrignull merged 2 commits intomainfrom
robertbrignull/resultsapp

Conversation

@robertbrignull
Copy link
Copy Markdown
Contributor

I think these cases for resultsInfo === null are impossible. The only two places where updateStateWithNewResultsInfo is called both pass a non-null object for resultsInfo.

I tried adding logging/exceptions/breakpoints into these cases and trying to hit them and I couldn't. I've also tried testing this branch and everything seems to still work perfectly fine.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@robertbrignull robertbrignull requested a review from a team February 14, 2024 12:52
@robertbrignull robertbrignull requested a review from a team as a code owner February 14, 2024 12:52
Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

LGTM

@robertbrignull robertbrignull merged commit f12629e into main Feb 14, 2024
@robertbrignull robertbrignull deleted the robertbrignull/resultsapp branch February 14, 2024 13:52
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