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:
parent
f87fe1cdab
commit
0c4f78619f
1 changed files with 2 additions and 7 deletions
|
@ -145,13 +145,6 @@ class FakeSocket extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
function emitErrorEvent(request, error) {
|
function emitErrorEvent(request, error) {
|
||||||
// TODO: enable this when we implement dc for ClientRequest
|
|
||||||
// if (onClientRequestErrorChannel.hasSubscribers) {
|
|
||||||
// onClientRequestErrorChannel.publish({
|
|
||||||
// request,
|
|
||||||
// error,
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
request.emit("error", error);
|
request.emit("error", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -579,10 +572,12 @@ class ClientRequest extends OutgoingMessage {
|
||||||
|
|
||||||
onSocket(socket, err) {
|
onSocket(socket, err) {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
// deno-lint-ignore no-this-alias
|
||||||
const req = this;
|
const req = this;
|
||||||
if (req.destroyed || err) {
|
if (req.destroyed || err) {
|
||||||
req.destroyed = true;
|
req.destroyed = true;
|
||||||
|
|
||||||
|
// deno-lint-ignore no-inner-declarations
|
||||||
function _destroy(req, err) {
|
function _destroy(req, err) {
|
||||||
if (!req.aborted && !err) {
|
if (!req.aborted && !err) {
|
||||||
err = new connResetException("socket hang up");
|
err = new connResetException("socket hang up");
|
||||||
|
|
Loading…
Reference in a new issue