mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-26 18:20:53 +01:00
chore: collapse error construction to satisfy biome formatter
This commit is contained in:
2 files changed
+2
-10
No files matched your search
+1
-5
@@ -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
@@ -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`));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user