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:
Brian Wilkerson 2018-05-31 21:03:46 +00:00 committed by commit-bot@chromium.org
parent 7a76a40438
commit 2ad29cbd15

View file

@ -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);
}