-
Notifications
You must be signed in to change notification settings - Fork 75
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
Remove unnecessary awaits #1982
Remove unnecessary awaits #1982
Conversation
@natebosch I hope I got the idea right on where asyncs/awaits can be safely removed. Appreciate a review! |
@@ -2,7 +2,6 @@ | |||
// for details. All rights reserved. Use of this source code is governed by a | |||
// BSD-style license that can be found in the LICENSE file. | |||
|
|||
import 'dart:async'; |
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 why the analyzer does not catch those...
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.
Hmm, it should
https://dart.dev/tools/diagnostic-messages#unnecessary_import
@srawlins - do you know why these aren't flagged?
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.
Not offhand. I've seen unnecessary_import
call out other dart:async
imports.
@@ -1,6 +1,6 @@ | |||
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |||
// for details. All rights reserved. Use of this source code is governed by a | |||
// BSD-style license that can be found in the LICENSE file.import 'dart:async'; |
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.
looks like accidental change propagated by copy and paste in places:)
@@ -2,7 +2,6 @@ | |||
// for details. All rights reserved. Use of this source code is governed by a | |||
// BSD-style license that can be found in the LICENSE file. | |||
|
|||
import 'dart:async'; |
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.
Hmm, it should
https://dart.dev/tools/diagnostic-messages#unnecessary_import
@srawlins - do you know why these aren't flagged?
Remove unnecessary awaits and async keywords.