api/handlers/chat.go
Method Chat.HandleChat
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *Chat) HandleChat(w http.ResponseWriter, r *http.Request, params server.WsRTMStartParams) {
t, err := uuid.Parse(params.Token)
if err != nil {
http.Error(w, "Token format invalid", http.StatusBadRequest)
return
Method Chat.HandleChat
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *Chat) HandleChat(w http.ResponseWriter, r *http.Request, params server.WsRTMStartParams) {
t, err := uuid.Parse(params.Token)
if err != nil {
http.Error(w, "Token format invalid", http.StatusBadRequest)
return