Skip to content

Commit

Permalink
remove redundant err!=nil check in conn.go Close method (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
tariq1890 authored and garyburd committed Apr 27, 2019
1 parent 0ec3d1b commit 6a67f44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,7 @@ func (w *messageWriter) Close() error {
if w.err != nil {
return w.err
}
if err := w.flushFrame(true, nil); err != nil {
return err
}
return nil
return w.flushFrame(true, nil)
}

// WritePreparedMessage writes prepared message into connection.
Expand Down

0 comments on commit 6a67f44

Please sign in to comment.