style: gofmt fixes for legacy build tag and test alignment

This commit is contained in:
wweir
2026-08-12 16:19:48 +08:00
parent a0f627621b
commit 1e64542adb
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1580,8 +1580,9 @@ func (f *failingFlusher) Header() http.Header {
}
return f.header
}
func (*failingFlusher) WriteHeader(int) {}
func (*failingFlusher) WriteHeader(int) {}
func (*failingFlusher) Write(p []byte) (int, error) { return len(p), nil }
// FlushError is the error-returning form http.ResponseController.Flush
// looks for (Go 1.26+); it lets the test fail flushes on demand.
func (f *failingFlusher) FlushError() error {