Skip to content

Commit fae5681

Browse files
lunnyGusted
authored andcommitted
Fix omitempty bug (go-gitea#33663)
Fix go-gitea#33660 (cherry picked from commit a25081f)
1 parent 12488d3 commit fae5681

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)