Skip to content

Commit f58b567

Browse files
lunnyGiteaBot
authored andcommitted
Fix omitempty bug (go-gitea#33663)
Fix go-gitea#33660
1 parent 9da6d4e commit f58b567

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)