mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Also set omitempty on conditions
This commit is contained in:
parent
6d63096256
commit
0d928c6d7a
|
|
@ -42,7 +42,7 @@ type Rule struct {
|
|||
|
||||
// Conditions provide the rule's conditions for OverrideKind and
|
||||
// UnderrideKind. Not allowed for other kinds.
|
||||
Conditions []*Condition `json:"conditions"`
|
||||
Conditions []*Condition `json:"conditions,omitempty"`
|
||||
|
||||
// Pattern is the body pattern to match for ContentKind. Required
|
||||
// for that kind. The interpretation is the same as that of
|
||||
|
|
|
|||
Loading…
Reference in a new issue