fix the setting of data slice length for tablewriter (#17918)

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu 2022-12-07 13:19:08 +08:00 committed by GitHub
parent 8cc16de180
commit a90181e312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ func logResults(logger logger.Interface, all []*selector.Candidate, results []*s
var buf bytes.Buffer
data := make([][]string, len(all))
data := make([][]string, 0, len(all))
for _, c := range all {
row := []string{