linting errors: clean it all up

This commit is contained in:
Zach Ramsay
2017-09-21 10:56:42 -04:00
committed by Ethan Buchman
parent b75d4f73e7
commit 8f0237610e
12 changed files with 25 additions and 34 deletions

View File

@ -353,7 +353,8 @@ func (c *WSClient) writeRoutine() {
defer func() {
ticker.Stop()
if err := c.conn.Close(); err != nil {
// panic(err) FIXME: this panic will trigger in tests
// ignore error; it will trigger in tests
// likely because it's closing and already closed connection
}
c.wg.Done()
}()
@ -404,7 +405,8 @@ func (c *WSClient) writeRoutine() {
func (c *WSClient) readRoutine() {
defer func() {
if err := c.conn.Close(); err != nil {
// panic(err) FIXME: this panic will trigger in tests
// ignore error; it will trigger in tests
// likely because it's closing and already closed connection
}
c.wg.Done()
}()