simplify append operation by omitting loop

This commit is contained in:
bartfokker 2018-10-25 22:12:46 +02:00
parent 4d48245d7d
commit f158fa742f

View File

@ -57,7 +57,5 @@ func (cg *CompactGrid) Buffer() ui.Buffer {
}
func (cg *CompactGrid) AddRows(rows ...ui.GridBufferer) {
for _, r := range rows {
cg.Rows = append(cg.Rows, r)
}
cg.Rows = append(cg.Rows, rows...)
}