Skip to content

Commit 6a67f44

Browse files
tariq1890garyburd
authored andcommitted
remove redundant err!=nil check in conn.go Close method (#505)
1 parent 0ec3d1b commit 6a67f44

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

conn.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,7 @@ func (w *messageWriter) Close() error {
708708
if w.err != nil {
709709
return w.err
710710
}
711-
if err := w.flushFrame(true, nil); err != nil {
712-
return err
713-
}
714-
return nil
711+
return w.flushFrame(true, nil)
715712
}
716713

717714
// WritePreparedMessage writes prepared message into connection.

0 commit comments

Comments
 (0)