Skip to content

Commit 6e1a252

Browse files
[release-18.0] VDiff CLI: Fix VDiff show bug (vitessio#16177) (vitessio#16197)
1 parent d406270 commit 6e1a252

File tree

1 file changed

+1
-1
lines changed
  • go/cmd/vtctldclient/command/vreplication/vdiff

1 file changed

+1
-1
lines changed

go/cmd/vtctldclient/command/vreplication/vdiff/vdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ func getStructFieldNames(s any) []string {
455455
}
456456

457457
func buildListings(listings []*listing) string {
458-
var values []string
459458
var lines [][]string
460459
var result string
461460

@@ -467,6 +466,7 @@ func buildListings(listings []*listing) string {
467466
// The header is the first row.
468467
lines = append(lines, fields)
469468
for _, listing := range listings {
469+
var values []string
470470
v := reflect.ValueOf(*listing)
471471
for _, field := range fields {
472472
values = append(values, v.FieldByName(field).String())

0 commit comments

Comments
 (0)