misc: simplify row append

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
pull/4329/head
Hidde Beydals 1 year ago
parent 43c2359705
commit 3278a0782f
No known key found for this signature in database
GPG Key ID: 979F380FC2341744

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

Loading…
Cancel
Save