Skip to content

Commit

Permalink
server: minor code style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gobwas committed Apr 26, 2021
1 parent 4b75daf commit d858df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (u HTTPUpgrader) Upgrade(r *http.Request, w http.ResponseWriter) (conn net.
}
httpWriteResponseError(rw.Writer, err, code, header.WriteTo)
// Do not store Flush() error to not override already existing one.
rw.Writer.Flush()
_ = rw.Writer.Flush()
}
return
}
Expand Down Expand Up @@ -639,7 +639,7 @@ func (u Upgrader) Upgrade(conn io.ReadWriter) (hs Handshake, err error) {
}
httpWriteResponseError(bw, err, code, header.WriteTo)
// Do not store Flush() error to not override already existing one.
bw.Flush()
_ = bw.Flush()
return
}

Expand Down

0 comments on commit d858df0

Please sign in to comment.