-
Notifications
You must be signed in to change notification settings - Fork 28.8k
remove unnecessary string interpolations #49622
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
@@ -80,7 +80,7 @@ class _IsolateConfiguration<Q, R> { | |||
Future<void> _spawn<Q, R>(_IsolateConfiguration<Q, FutureOr<R>> configuration) async { | |||
R result; | |||
await Timeline.timeSync( | |||
'${configuration.debugLabel}', | |||
'${configuration.debugLabel}', // ignore: unnecessary_string_interpolations, guarding null value |
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.
The only ignore case
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.
We could also just change this to coallesce to something like <isolate label optimized out>
.
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 will rebase my PR once #49638 is merged.
02a44a5
to
eb2d936
Compare
rebased. PTAL |
eb2d936
to
b3902b2
Compare
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
Description
Remove unnecessary string interpolations. Same changes as #49602 expect for one case where the interpolation was guarding null.
Related Issues
compute
can cause a crash in release mode #49601Tests
None
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.