Enable errcheck linter (#646)

This commit is contained in:
Duco van Amstel
2018-12-08 16:04:10 +00:00
committed by Wim
parent b6d81f34ba
commit a2754f15fc
7 changed files with 37 additions and 25 deletions

View File

@@ -208,7 +208,9 @@ func (m *MMClient) StatusLoop() {
return
}
if m.WsConnected {
m.checkAlive()
if err := m.checkAlive(); err != nil {
log.Errorf("Connection is not alive: %#v", err)
}
select {
case <-m.WsPingChan:
m.log.Debug("WS PONG received")