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