mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
fix(ext/http): merge identical if/else branches (#12269)
This commit is contained in:
parent
4cf744032d
commit
62920e4ef5
1 changed files with 3 additions and 5 deletions
|
@ -70,11 +70,9 @@
|
|||
// a generic `BadResource` error. Instead store this error and replace
|
||||
// those with it.
|
||||
this[connErrorSymbol] = error;
|
||||
if (error instanceof BadResource) {
|
||||
return null;
|
||||
} else if (error instanceof Interrupted) {
|
||||
return null;
|
||||
} else if (
|
||||
if (
|
||||
error instanceof BadResource ||
|
||||
error instanceof Interrupted ||
|
||||
StringPrototypeIncludes(error.message, "connection closed")
|
||||
) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue