Skip to content

Commit

Permalink
fix: list server label verbose panic (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Aug 2, 2023
1 parent f52fbb8 commit 4b0ef3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mdz/pkg/cmd/server_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func labelsString(labels map[string]string) string {
for k, v := range labels {
res += fmt.Sprintf("%s=%s\n", k, v)
}
if len(res) == 0 {
return res
}
return res[:len(res)-1]
}

Expand Down

0 comments on commit 4b0ef3c

Please sign in to comment.