Skip to content

Null safety migration of packages/flutter_tools/bin#110706

Merged
liamappelbe merged 17 commits intoflutter:masterfrom
liamappelbe:null_migration_1
Sep 12, 2022
Merged

Null safety migration of packages/flutter_tools/bin#110706
liamappelbe merged 17 commits intoflutter:masterfrom
liamappelbe:null_migration_1

Conversation

@liamappelbe
Copy link
Contributor

Null safety migration of packages/flutter_tools/bin

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 31, 2022
@liamappelbe
Copy link
Contributor Author

Blocked on dwds migration

@liamappelbe liamappelbe marked this pull request as ready for review September 7, 2022 22:34
@liamappelbe
Copy link
Contributor Author

Tests are passing

globals.fs.currentDirectory = testDirectory.parent;
globals.fs.currentDirectory = testDirectory!.parent;
} else {
globals.fs.currentDirectory = testDirectory;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
globals.fs.currentDirectory = testDirectory;
globals.fs.currentDirectory = testDirectory!;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried that, but the analyzer complains that this is an unnecessary assertion.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, I guess because set currentDirectory takes a dynamic. This is fine.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM

@liamappelbe liamappelbe merged commit e3b9223 into flutter:master Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants