-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
There was a problem hiding this 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.
webdev/lib/src/daemon/daemon.dart
Outdated
@@ -16,7 +14,7 @@ import 'utilites.dart'; | |||
/// the result. | |||
class Daemon { | |||
Daemon( | |||
Stream<Map<String, dynamic>> commandStream, | |||
Stream<Map<String, dynamic>?> commandStream, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point! Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Requires #1757