Unverified Commit 9c31f9f4 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

remove unnecessary ..toList() (#35263)

parent 3badcf51
...@@ -396,9 +396,7 @@ class SampleChecker { ...@@ -396,9 +396,7 @@ class SampleChecker {
if (preambleSections.isEmpty) { if (preambleSections.isEmpty) {
sections.add(processed); sections.add(processed);
} else { } else {
sections.add(Section.combine(preambleSections sections.add(Section.combine(preambleSections..add(processed)));
..toList()
..add(processed)));
} }
block.clear(); block.clear();
} else if (trimmedLine == _dartDocPrefix) { } else if (trimmedLine == _dartDocPrefix) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment