Skip to content

Migrate more files to null-safety #1758

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 7 commits into from
Oct 17, 2022

Conversation

elliette
Copy link
Contributor

@elliette elliette commented Oct 6, 2022

Requires #1757

@elliette elliette marked this pull request as ready for review October 14, 2022 17:08
@elliette elliette requested a review from annagrin October 14, 2022 17:08
Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

Thanks Elliott! I left a comment.

@@ -16,7 +14,7 @@ import 'utilites.dart';
/// the result.
class Daemon {
Daemon(
Stream<Map<String, dynamic>> commandStream,
Stream<Map<String, dynamic>?> commandStream,
Copy link
Contributor

@annagrin annagrin Oct 14, 2022

Choose a reason for hiding this comment

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

I wonder if we can avoid having nulls in the command stream - it does not seems that we are relying on null commands in any way, and the code before did not expect them to be null it seems. Can we update the code that creates the stream in daemon_command.dart to have only non-null commands in the stream?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah good point! Done

Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

LGTM!

@elliette elliette merged commit 5343edb into dart-lang:master Oct 17, 2022
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