chore(http): Run prettier

pull/1446/head
FabianLars 1 year ago
parent 8e1ae08c69
commit 6ada2af2e1
No known key found for this signature in database

@ -102,7 +102,7 @@ export interface ClientOptions {
*/ */
export async function fetch( export async function fetch(
input: URL | Request | string, input: URL | Request | string,
init?: RequestInit & ClientOptions init?: RequestInit & ClientOptions,
): Promise<Response> { ): Promise<Response> {
const maxRedirections = init?.maxRedirections; const maxRedirections = init?.maxRedirections;
const connectTimeout = init?.connectTimeout; const connectTimeout = init?.connectTimeout;
@ -150,7 +150,7 @@ export async function fetch(
// we need to ensure we have all header values as strings // we need to ensure we have all header values as strings
// eslint-disable-next-line // eslint-disable-next-line
typeof val === "string" ? val : (val as any).toString(), typeof val === "string" ? val : (val as any).toString(),
] ],
); );
const rid = await invoke<number>("plugin:http|fetch", { const rid = await invoke<number>("plugin:http|fetch", {
@ -193,7 +193,7 @@ export async function fetch(
"plugin:http|fetch_read_body", "plugin:http|fetch_read_body",
{ {
rid: responseRid, rid: responseRid,
} },
); );
const res = new Response( const res = new Response(
@ -206,7 +206,7 @@ export async function fetch(
headers: responseHeaders, headers: responseHeaders,
status, status,
statusText, statusText,
} },
); );
// url is read only but seems like we can do this // url is read only but seems like we can do this

Loading…
Cancel
Save