Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Sep 18, 2024
1 parent 155113e commit a7236a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/http/00_serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,12 @@ function mapToCallback(context, callback, onError) {
if (response.type === "error") {
throw new TypeError(
"Return value from serve handler must not be an error response (like Response.error())",
)
);
}

if (response.bodyUsed) {
throw new TypeError(
"The body of the Response returned from the serve handler has already been consumed"
"The body of the Response returned from the serve handler has already been consumed",
);
}
} catch (error) {
Expand Down
1 change: 0 additions & 1 deletion tests/unit/serve_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ Deno.test(
},
);


Deno.test(
{ permissions: { net: true } },
async function httpServerReturnErrorResponse() {
Expand Down

0 comments on commit a7236a8

Please sign in to comment.