mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-14 16:52:47 +02:00
lint fix.
This commit is contained in:
parent
1ff743c598
commit
9c014336ff
16 changed files with 76 additions and 46 deletions
|
@ -35,7 +35,10 @@ func (h *MessageHandler) controlRequest(id string, session types.Session) error
|
|||
// check for host
|
||||
if !h.sessions.HasHost() {
|
||||
// set host
|
||||
h.sessions.SetHost(id)
|
||||
err := h.sessions.SetHost(id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// let everyone know
|
||||
if err := h.sessions.Broadcast(
|
||||
|
@ -89,7 +92,10 @@ func (h *MessageHandler) controlGive(id string, session types.Session, payload *
|
|||
}
|
||||
|
||||
// set host
|
||||
h.sessions.SetHost(payload.ID)
|
||||
err := h.sessions.SetHost(payload.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// let everyone know
|
||||
if err := h.sessions.Broadcast(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue