Skip to content

Commit 4a87b61

Browse files
committed
update
1 parent 956292c commit 4a87b61

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

bench/routers/routers/rou3.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ type Handler = (params: Record<string, string>) => string;
2424
return typeof res !== 'undefined' ? res.data(res.params!) : '';
2525
});
2626

27-
const compiledFindRoute = compileRouter(router);
28-
simple_api.it('rou3 (jit)', (method, path) => {
29-
let res = compiledFindRoute(method, path);
30-
return typeof res !== 'undefined' ? res.data(res.params!) : '';
31-
});
27+
{
28+
const compiledFindRoute = compileRouter(router);
29+
simple_api.it('rou3 (jit)', (method, path) => {
30+
let res = compiledFindRoute(method, path);
31+
return typeof res !== 'undefined' ? res.data(res.params!) : '';
32+
});
33+
}
3234
}

0 commit comments

Comments
 (0)