remove unnecessary ..toList() (#35263)
This commit is contained in:
committed by
GitHub
parent
3badcf51a4
commit
9c31f9f41a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user