Skip to content

Commit

Permalink
Fix omitempty bug (#33663) (#33670)
Browse files Browse the repository at this point in the history
Backport #33663 by @lunny

Fix #33660

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
  • Loading branch information
GiteaBot and lunny authored Feb 21, 2025
1 parent 9da6d4e commit 37e99d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/admin/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func init() {
// TranslatableMessage represents JSON struct that can be translated with a Locale
type TranslatableMessage struct {
Format string
Args []any `json:"omitempty"`
Args []any `json:",omitempty"`
}

// LoadRepo loads repository of the task
Expand Down

0 comments on commit 37e99d9

Please sign in to comment.