Don't send nulls

This commit is contained in:
Neil Alexander 2021-07-28 16:03:06 +01:00
parent 9a541a03fc
commit 525c9e054f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 16 additions and 9 deletions

View file

@ -72,8 +72,8 @@ func QueryDeviceKeys(
Code: 200,
JSON: struct {
DeviceKeys interface{} `json:"device_keys"`
MasterKeys interface{} `json:"master_keys"`
SelfSigningKeys interface{} `json:"self_signing_keys"`
MasterKeys interface{} `json:"master_keys,omitempty"`
SelfSigningKeys interface{} `json:"self_signing_keys,omitempty"`
}{
queryRes.DeviceKeys,
queryRes.MasterKeys,