fix lint warning

pull/714/merge v2.50
Darien Raymond 7 years ago
parent a6393449e0
commit 028b2b74c9
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -175,10 +175,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
defer ray.InboundInput().Close()
v2reader := buf.NewReader(conn)
if err := buf.Copy(v2reader, ray.InboundInput(), buf.UpdateActivity(timer)); err != nil {
return err
}
return nil
return buf.Copy(v2reader, ray.InboundInput(), buf.UpdateActivity(timer))
})
responseDone := signal.ExecuteAsync(func() error {

Loading…
Cancel
Save