Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

fix issue 1518 #1531

Merged
merged 1 commit into from
Apr 18, 2019
Merged

fix issue 1518 #1531

merged 1 commit into from
Apr 18, 2019

Conversation

a14n
Copy link
Contributor

@a14n a14n commented Apr 17, 2019

@@ -96,7 +96,7 @@ class _Visitor extends SimpleAstVisitor<void> {
}
if (returnType != null &&
returnType.isDartAsyncFuture &&
type.isAssignableTo(returnType)) {
type.isSubtypeOf(returnType)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me but I'll defer to @bwilkerson for the final call since he may be aware of other implications.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems reasonable to me, and the tests appear to show that it's the right test, but I haven't spent any time to try to prove to myself that it's correct. I say, go for it.

@@ -96,7 +96,7 @@ class _Visitor extends SimpleAstVisitor<void> {
}
if (returnType != null &&
returnType.isDartAsyncFuture &&
type.isAssignableTo(returnType)) {
type.isSubtypeOf(returnType)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems reasonable to me, and the tests appear to show that it's the right test, but I haven't spent any time to try to prove to myself that it's correct. I say, go for it.

@pq
Copy link
Contributor

pq commented Apr 18, 2019

Thanks for taking a look @bwilkerson !

@pq pq merged commit 7eac71d into dart-archive:master Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

Issue with lint unnecessary_await_in_return
4 participants