remove unnecessary ..toList() (#35263)

This commit is contained in:
Alexandre Ardhuin 2019-07-01 07:05:42 +02:00 committed by GitHub
parent 3badcf51a4
commit 9c31f9f41a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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