mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
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:
parent
8cc16de180
commit
a90181e312
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user