linting: few more fixes

This commit is contained in:
Zach Ramsay
2017-10-14 14:38:47 -04:00
committed by Ethan Buchman
parent c7b6faf96a
commit c84c7250ba
4 changed files with 4 additions and 17 deletions

View File

@ -529,12 +529,9 @@ func (wsc *wsConnection) readRoutine() {
wsc.WriteRPCResponse(types.RPCInternalError("unknown", err))
go wsc.readRoutine()
} else {
if err := wsc.baseConn.Close(); err != nil {
panic(err)
}
wsc.baseConn.Close() // nolint: errcheck
}
}()
defer wsc.baseConn.Close()
wsc.baseConn.SetPongHandler(func(m string) error {
return wsc.baseConn.SetReadDeadline(time.Now().Add(wsc.readWait))