mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
simplify append operation by omitting loop
This commit is contained in:
parent
4d48245d7d
commit
f158fa742f
@ -57,7 +57,5 @@ func (cg *CompactGrid) Buffer() ui.Buffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cg *CompactGrid) AddRows(rows ...ui.GridBufferer) {
|
func (cg *CompactGrid) AddRows(rows ...ui.GridBufferer) {
|
||||||
for _, r := range rows {
|
cg.Rows = append(cg.Rows, rows...)
|
||||||
cg.Rows = append(cg.Rows, r)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user