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) {