mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
lib/httpserver: make make errcheck
happy after the commit 9fc7726d84
This commit is contained in:
parent
cb943f35c7
commit
7f15cd7161
1 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ func (zrw *gzipResponseWriter) writeHeader() {
|
|||
// Implements http.Flusher
|
||||
func (zrw *gzipResponseWriter) Flush() {
|
||||
if !zrw.firstWriteDone {
|
||||
zrw.Write(nil)
|
||||
_, _ = zrw.Write(nil)
|
||||
}
|
||||
if !zrw.disableCompression {
|
||||
if err := zrw.bw.Flush(); err != nil && !isTrivialNetworkError(err) {
|
||||
|
@ -450,7 +450,7 @@ func (zrw *gzipResponseWriter) Flush() {
|
|||
|
||||
func (zrw *gzipResponseWriter) Close() error {
|
||||
if !zrw.firstWriteDone {
|
||||
zrw.Write(nil)
|
||||
_, _ = zrw.Write(nil)
|
||||
}
|
||||
zrw.Flush()
|
||||
var err error
|
||||
|
|
Loading…
Reference in a new issue