Skip to content

Commit 37e99d9

Browse files
GiteaBotlunny
andauthored
Fix omitempty bug (#33663) (#33670)
Backport #33663 by @lunny Fix #33660 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 9da6d4e commit 37e99d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/admin/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func init() {
4444
// TranslatableMessage represents JSON struct that can be translated with a Locale
4545
type TranslatableMessage struct {
4646
Format string
47-
Args []any `json:"omitempty"`
47+
Args []any `json:",omitempty"`
4848
}
4949

5050
// LoadRepo loads repository of the task

0 commit comments

Comments
 (0)