Skip to content

Commit

Permalink
Version 3.7.0-53.0.dev
Browse files Browse the repository at this point in the history
Merge c53347d into dev
  • Loading branch information
Dart CI committed Oct 22, 2024
2 parents efbe0a8 + c53347d commit 3792455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/linter/lib/src/rules/unnecessary_await_in_return.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ class _Visitor extends SimpleAstVisitor<void> {

DartType? returnType;
if (parent is FunctionExpression) {
returnType = parent.declaredElement?.returnType;
returnType = parent.declaredFragment?.element.returnType;
} else if (parent is MethodDeclaration) {
returnType = parent.declaredElement?.returnType;
returnType = parent.declaredFragment?.element.returnType;
} else if (parent is Block) {
// removing await in try block changes the behaviour
return;
Expand Down
2 changes: 1 addition & 1 deletion tools/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ CHANNEL dev
MAJOR 3
MINOR 7
PATCH 0
PRERELEASE 52
PRERELEASE 53
PRERELEASE_PATCH 0

0 comments on commit 3792455

Please sign in to comment.