From 9c31f9f41ab3eac541f63052b098acbc6f7e7454 Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Mon, 1 Jul 2019 07:05:42 +0200 Subject: [PATCH] remove unnecessary ..toList() (#35263) --- dev/bots/analyze-sample-code.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev/bots/analyze-sample-code.dart b/dev/bots/analyze-sample-code.dart index e07905f13d..d949bb2aa5 100644 --- a/dev/bots/analyze-sample-code.dart +++ b/dev/bots/analyze-sample-code.dart @@ -396,9 +396,7 @@ class SampleChecker { if (preambleSections.isEmpty) { sections.add(processed); } else { - sections.add(Section.combine(preambleSections - ..toList() - ..add(processed))); + sections.add(Section.combine(preambleSections..add(processed))); } block.clear(); } else if (trimmedLine == _dartDocPrefix) {