forked from mirror/websocket
remove redundant err!=nil check in conn.go Close method (#505)
This commit is contained in:
parent
0ec3d1bd7f
commit
6a67f44b69
5
conn.go
5
conn.go
|
@ -708,10 +708,7 @@ func (w *messageWriter) Close() error {
|
||||||
if w.err != nil {
|
if w.err != nil {
|
||||||
return w.err
|
return w.err
|
||||||
}
|
}
|
||||||
if err := w.flushFrame(true, nil); err != nil {
|
return w.flushFrame(true, nil)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WritePreparedMessage writes prepared message into connection.
|
// WritePreparedMessage writes prepared message into connection.
|
||||||
|
|
Loading…
Reference in New Issue