1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 17:25:27 -05:00

fix lint warning

This commit is contained in:
Darien Raymond
2017-11-17 21:02:32 +01:00
parent a6393449e0
commit 028b2b74c9

View File

@@ -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 {