diff options
author | Kegsay <kegan@matrix.org> | 2020-10-06 11:05:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 11:05:15 +0100 |
commit | 1eaf7aa27e5e4592cd5f8d8c3d9c42cece798748 (patch) | |
tree | 388285195bfa2372f49655a89c50e26d13efb7cb | |
parent | bf90db5b60d694d8af0e8ec1d90d2501604ab219 (diff) |
Use [] not null when there are no devices (#1480)
-rw-r--r-- | federationapi/routing/devices.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/federationapi/routing/devices.go b/federationapi/routing/devices.go index 00631b9b..07862451 100644 --- a/federationapi/routing/devices.go +++ b/federationapi/routing/devices.go @@ -40,6 +40,7 @@ func GetUserDevices( response := gomatrixserverlib.RespUserDevices{ UserID: userID, StreamID: res.StreamID, + Devices: []gomatrixserverlib.RespUserDevice{}, } for _, dev := range res.Devices { |