misc: simplify row append

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-10-13 10:12:36 +02:00
parent 43c2359705
commit 3278a0782f
No known key found for this signature in database
GPG key ID: 979F380FC2341744

View file

@ -35,9 +35,7 @@ func TablePrinter(header []string) PrinterFunc {
if !ok {
return fmt.Errorf("unsupported type %T", v)
}
for i := range s {
rows = append(rows, s[i])
}
rows = append(rows, s...)
}
default:
return fmt.Errorf("unsupported type %T", arg)