Skip to content

Commit 2ad29cb

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Remove unnecessary uses of toExpression
Change-Id: I07933f647ee71c5357a599d06ce9268c0020cbd6 Reviewed-on: https://dart-review.googlesource.com/57707 Reviewed-by: Dan Rubel <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 7a76a40 commit 2ad29cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ abstract class BodyBuilder<Expression, Statement, Arguments>
309309
}
310310

311311
Expression toEffect(Object node) {
312-
if (node is Generator) return toExpression(node.buildForEffect());
312+
if (node is Generator) return node.buildForEffect();
313313
return toValue(node);
314314
}
315315

0 commit comments

Comments
 (0)