Skip to content

Commit 13a7980

Browse files
fix(std): lint
1 parent 260b948 commit 13a7980

File tree

1 file changed

+9
-9
lines changed
  • packages/jco-std/src/wasi/0.2.x/http/types

1 file changed

+9
-9
lines changed

packages/jco-std/src/wasi/0.2.x/http/types/request.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export function genReadWASIRequestFn(incomingBodyTy: typeof IncomingBody) {
2929
const schemeRaw = wasiIncomingRequest.scheme();
3030
let scheme;
3131
switch (schemeRaw.tag) {
32-
case 'HTTP':
33-
scheme = 'http'
34-
break;
35-
case 'HTTPS':
36-
scheme = 'https'
37-
break;
38-
default:
39-
throw new Error(`unexpected scheme [${schemeRaw.tag}]`);
32+
case 'HTTP':
33+
scheme = 'http'
34+
break;
35+
case 'HTTPS':
36+
scheme = 'https'
37+
break;
38+
default:
39+
throw new Error(`unexpected scheme [${schemeRaw.tag}]`);
4040
}
4141

4242
const authority = wasiIncomingRequest.authority();
@@ -56,7 +56,7 @@ export function genReadWASIRequestFn(incomingBodyTy: typeof IncomingBody) {
5656
let body: ReadableStream;
5757
if (requestShouldHaveBody({ method })) {
5858
body = new ReadableStream({
59-
start(controller) {
59+
start() {
6060
if (!incomingBody) {
6161
incomingBody = wasiIncomingRequest.consume();
6262
incomingBodyStream = incomingBody.stream();

0 commit comments

Comments
 (0)