chore: collapse error construction to satisfy biome formatter

This commit is contained in:
Tom Keller committed 2026-11-23 16:13:43 -08:00
1 parent f29471117d
commit 0d3590c0ab
2 files changed
+2 -10

No files matched your search

Generated Vendored
+1 -5
View File
@@ -75468,11 +75468,7 @@ function verifyProxyConnect(req) {
req.once("proxyConnect", (response) => {
if (response.statusCode !== 200) {
const statusText = response.statusText ? ` ${response.statusText}` : "";
req.destroy(
new Error(
`Proxy CONNECT returned HTTP ${response.statusCode}${statusText}; aborting`
)
);
req.destroy(new Error(`Proxy CONNECT returned HTTP ${response.statusCode}${statusText}; aborting`));
}
});
}
+1 -5
View File
@@ -225,11 +225,7 @@ export function verifyProxyConnect(req: http.ClientRequest): void {
req.once('proxyConnect', (response: { statusCode: number; statusText: string }) => {
if (response.statusCode !== 200) {
const statusText = response.statusText ? ` ${response.statusText}` : '';
req.destroy(
new Error(
`Proxy CONNECT returned HTTP ${response.statusCode}${statusText}; aborting`,
),
);
req.destroy(new Error(`Proxy CONNECT returned HTTP ${response.statusCode}${statusText}; aborting`));
}
});
}