From 7dab620b1ac7851da6ac0db68c89f897f48e989a Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Tue, 14 Apr 2020 17:13:07 +0100 Subject: [PATCH] make it compile --- app/http/endpoints/manage/webchatws.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/http/endpoints/manage/webchatws.go b/app/http/endpoints/manage/webchatws.go index b66bd73..cfec2b0 100644 --- a/app/http/endpoints/manage/webchatws.go +++ b/app/http/endpoints/manage/webchatws.go @@ -85,11 +85,7 @@ func WebChatWs(ctx *gin.Context) { SocketsLock.Lock() Sockets = append(Sockets, socket) SocketsLock.Unlock() - userId, err := utils.GetUserId(store) - if err != nil { - conn.Close() - return - } + userId := utils.GetUserId(store) var guildId string var guildIdParsed uint64