Skip to content

Commit edb6e77

Browse files
VDiff CLI: Fix VDiff show bug (#16177)
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
1 parent 6ff19c9 commit edb6e77

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
@@ -462,7 +462,6 @@ func getStructFieldNames(s any) []string {
462462
}
463463

464464
func buildListings(listings []*listing) string {
465-
var values []string
466465
var lines [][]string
467466
var result string
468467

@@ -474,6 +473,7 @@ func buildListings(listings []*listing) string {
474473
// The header is the first row.
475474
lines = append(lines, fields)
476475
for _, listing := range listings {
476+
var values []string
477477
v := reflect.ValueOf(*listing)
478478
for _, field := range fields {
479479
values = append(values, v.FieldByName(field).String())

0 commit comments

Comments
 (0)