1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 02:27:46 -05:00

fix lint errors

This commit is contained in:
Yoshiya Hinosawa 2024-09-26 19:37:12 +09:00
parent f87fe1cdab
commit 0c4f78619f
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -145,13 +145,6 @@ class FakeSocket extends EventEmitter {
}
function emitErrorEvent(request, error) {
// TODO: enable this when we implement dc for ClientRequest
// if (onClientRequestErrorChannel.hasSubscribers) {
// onClientRequestErrorChannel.publish({
// request,
// error,
// });
// }
request.emit("error", error);
}
@ -579,10 +572,12 @@ class ClientRequest extends OutgoingMessage {
onSocket(socket, err) {
nextTick(() => {
// deno-lint-ignore no-this-alias
const req = this;
if (req.destroyed || err) {
req.destroyed = true;
// deno-lint-ignore no-inner-declarations
function _destroy(req, err) {
if (!req.aborted && !err) {
err = new connResetException("socket hang up");