mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
simplify append operation by omitting loop
This commit is contained in:
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user