forked from External/ergo
don't shadow the second error
This commit is contained in:
parent
fce54343ea
commit
a16cc84e41
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue