mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-12 15:53:31 -07:00
don't shadow the second error
This commit is contained in:
+4
-3
@@ -40,7 +40,8 @@ func (this WSContainer) Write(msg []byte) (int, error) {
|
||||
}
|
||||
|
||||
func (this WSContainer) SetDeadline(t time.Time) error {
|
||||
err := this.SetWriteDeadline(t)
|
||||
err = this.SetReadDeadline(t)
|
||||
return err
|
||||
if err := this.SetWriteDeadline(t); err != nil {
|
||||
return err
|
||||
}
|
||||
return this.SetReadDeadline(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user