remove redundant err!=nil check in conn.go Close method (#505)

This commit is contained in:
Tariq Ibrahim 2019-04-26 21:02:11 -07:00 committed by Gary Burd
parent 0ec3d1bd7f
commit 6a67f44b69
1 changed files with 1 additions and 4 deletions

View File

@ -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.