Added golangci linting and improved what was required

This commit is contained in:
Nicholas Thompson
2019-03-07 19:04:15 +02:00
committed by ncthompson
parent 206159cdea
commit 2456f45836
15 changed files with 244 additions and 255 deletions

View File

@@ -36,7 +36,7 @@ func (h *Hub) Broadcast(message interface{}) error {
if err != nil {
return err
}
h.broadcast <- []byte(payload)
h.broadcast <- payload
return nil
}