зеркало из https://github.com/Azure/ARO-RP.git
cleanup: removed useless anonymous function definition.
This commit is contained in:
Родитель
51d2da230d
Коммит
73c9f04c30
|
@ -162,12 +162,10 @@ func Proxy(log *logrus.Entry, w http.ResponseWriter, r *http.Request, sz int) {
|
|||
_, _ = io.Copy(c2, buf)
|
||||
}()
|
||||
|
||||
func() {
|
||||
// copy from c2->c1. Call c1.CloseWrite() when done.
|
||||
defer func() {
|
||||
_ = c1.(interface{ CloseWrite() error }).CloseWrite()
|
||||
}()
|
||||
_, _ = io.Copy(c1, c2)
|
||||
// copy from c2->c1. Call c1.CloseWrite() when done.
|
||||
defer func() {
|
||||
_ = c1.(interface{ CloseWrite() error }).CloseWrite()
|
||||
}()
|
||||
_, _ = io.Copy(c1, c2)
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче