aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/devices.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-10-06 11:05:15 +0100
committerGitHub <noreply@github.com>2020-10-06 11:05:15 +0100
commit1eaf7aa27e5e4592cd5f8d8c3d9c42cece798748 (patch)
tree388285195bfa2372f49655a89c50e26d13efb7cb /federationapi/routing/devices.go
parentbf90db5b60d694d8af0e8ec1d90d2501604ab219 (diff)
Use [] not null when there are no devices (#1480)
Diffstat (limited to 'federationapi/routing/devices.go')
-rw-r--r--federationapi/routing/devices.go1
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 {