run gofumpt cleanup across code-base (#14015)

This commit is contained in:
Harshavardhana authored and GitHub committed 2022-01-02 09:15:06 -08:00
1 parent 6f474982ed
commit f527c708f2
250 files changed
+1201 -1264

No files matched your search

+3 -3
View File
@@ -746,7 +746,7 @@ func keepHTTPReqResponseAlive(w http.ResponseWriter, r *http.Request) (resp func
doneCh := make(chan error)
ctx := r.Context()
go func() {
var canWrite = true
canWrite := true
write := func(b []byte) {
if canWrite {
n, err := w.Write(b)
@@ -820,7 +820,7 @@ func keepHTTPReqResponseAlive(w http.ResponseWriter, r *http.Request) (resp func
func keepHTTPResponseAlive(w http.ResponseWriter) func(error) {
doneCh := make(chan error)
go func() {
var canWrite = true
canWrite := true
write := func(b []byte) {
if canWrite {
n, err := w.Write(b)
@@ -940,7 +940,7 @@ func streamHTTPResponse(w http.ResponseWriter) *httpStreamResponse {
blockCh := make(chan []byte)
h := httpStreamResponse{done: doneCh, block: blockCh}
go func() {
var canWrite = true
canWrite := true
write := func(b []byte) {
if canWrite {
n, err := w.Write(b)