Skip to content

Fix the broken build #5076

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

Merged
merged 2 commits into from
Jan 20, 2023
Merged

Fix the broken build #5076

merged 2 commits into from
Jan 20, 2023

Conversation

kenzieschmoll
Copy link
Member

RELEASE_NOTE_EXCEPTION=[not user facing]

@kenzieschmoll kenzieschmoll requested a review from a team as a code owner January 20, 2023 00:03
@kenzieschmoll kenzieschmoll requested review from bkonyi and removed request for a team January 20, 2023 00:03
@@ -134,7 +134,12 @@ void testWidgetsWithContext(
} finally {
// restore previous global values
for (Type type in oldValues.keys) {
setGlobal(type, oldValues[type]);
final oldGlobal = oldValues[type];
if (oldGlobal != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: using oldValues.containsKey would be safer in case it ever matters whether the oldValue was null rather than ommitted.

Copy link
Member Author

Choose a reason for hiding this comment

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

oldValues[type] will be explicitly set to null above on line 128, so oldValues will actually contain the key here

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

@kenzieschmoll kenzieschmoll merged commit 75549dc into flutter:master Jan 20, 2023
@kenzieschmoll kenzieschmoll deleted the fix-build branch January 20, 2023 00:30
@CoderDake CoderDake mentioned this pull request Jan 24, 2023
7 tasks
@DartDevtoolWorkflowBot DartDevtoolWorkflowBot mentioned this pull request Jan 24, 2023
7 tasks
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