From 38024245e56c89aecace841daae71482123a3d76 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 3 Oct 2017 13:41:17 +0100 Subject: [PATCH] Correctly initialise slice --- .../matrix-org/dendrite/syncapi/sync/intitial_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/syncapi/sync/intitial_sync.go b/src/github.com/matrix-org/dendrite/syncapi/sync/intitial_sync.go index 8201a81a1..8a3eb4dfd 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/sync/intitial_sync.go +++ b/src/github.com/matrix-org/dendrite/syncapi/sync/intitial_sync.go @@ -48,7 +48,7 @@ func GetInitialSync( } func syncResponseToIntialSync(syncResponse *types.Response) initialSyncResponse { - var rooms []initialSyncRoomResponse + rooms := []initialSyncRoomResponse{} for roomID, room := range syncResponse.Rooms.Join { rooms = append(rooms, initialSyncRoomResponse{