-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[semantics] Use a switch over a map to enumerate checks #162424
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
- eliminates a const map and a typedef - leverage switch + enum language check to ensure coverage - eliminates a runtime null check
|
Assuming tests pass, I think this is a cleaner impl. Thoughts? |
chunhtai
left a comment
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
|
autosubmit label was removed for flutter/flutter/162424, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
autosubmit label was removed for flutter/flutter/162424, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
autosubmit label was removed for flutter/flutter/162424, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
autosubmit label was removed for flutter/flutter/162424, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
autosubmit label was removed for flutter/flutter/162424, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Uh oh!
There was an error while loading. Please reload this page.