Fix deprecated warning double-formatting on localized clients

This commit is contained in:
世界
2026-04-07 20:53:53 +08:00
parent bd283d6ea6
commit 39f6e793b9
4 changed files with 48 additions and 13 deletions
+4 -2
View File
@@ -574,8 +574,10 @@ func (c *CommandClient) GetDeprecatedNotes() (DeprecatedNoteIterator, error) {
var notes []*DeprecatedNote
for _, warning := range warnings.Warnings {
notes = append(notes, &DeprecatedNote{
Description: warning.Message,
MigrationLink: warning.MigrationLink,
Description: warning.Description,
DeprecatedVersion: warning.DeprecatedVersion,
ScheduledVersion: warning.ScheduledVersion,
MigrationLink: warning.MigrationLink,
})
}
return newIterator(notes), nil