Skip to content

Commit 0f6bdfd

Browse files
committed
chore: final polishing 😸
1 parent 8837e0d commit 0f6bdfd

File tree

1 file changed

+3
-3
lines changed
  • crates/base/test_cases/slow_resp

1 file changed

+3
-3
lines changed

crates/base/test_cases/slow_resp/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Deno.serve(async (req: Request) => {
22
// NOTE(Nyannyacha): This should be hot enough to V8 decides JIT compilation.
3-
4-
let nothing = await (req.method === "POST" ? req.text() : Promise.resolve(""));
53

6-
if(req.method === "POST") {
4+
let nothing = req.method === "POST" ? await req.text() : "";
5+
6+
if (req.method === "POST") {
77
console.log(nothing);
88
}
99

0 commit comments

Comments
 (0)