mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 19:32:47 +00:00
Remove unnecessary uses of toExpression
Change-Id: I07933f647ee71c5357a599d06ce9268c0020cbd6 Reviewed-on: https://dart-review.googlesource.com/57707 Reviewed-by: Dan Rubel <danrubel@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
parent
7a76a40438
commit
2ad29cbd15
|
@ -309,7 +309,7 @@ abstract class BodyBuilder<Expression, Statement, Arguments>
|
|||
}
|
||||
|
||||
Expression toEffect(Object node) {
|
||||
if (node is Generator) return toExpression(node.buildForEffect());
|
||||
if (node is Generator) return node.buildForEffect();
|
||||
return toValue(node);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue