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

Optimizing the NewsItem and OnThisDay variables #4923

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

cooltey
Copy link
Collaborator

@cooltey cooltey commented Sep 5, 2024

What does this do?

Replace the nullable data type in a List with non-nullable to reduce unnecessary logic to check.

Why is this needed?

When requesting the API, it usually responds with an empty list or valid data, which the List<PageSummary> is good for the condition.

@cooltey cooltey added the Minor Minor stuff label Sep 5, 2024
@cooltey cooltey requested a review from dbrant as a code owner September 5, 2024 00:12
@dbrant dbrant merged commit d21edaa into main Sep 5, 2024
2 checks passed
@dbrant dbrant deleted the update-data-item-feed branch September 5, 2024 13:43
cooltey added a commit that referenced this pull request Sep 5, 2024
* main:
  Optimizing the NewsItem and OnThisDay variables (#4923)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Minor stuff
Development

Successfully merging this pull request may close these issues.

2 participants