Skip to content
Myr

refactor: remove useless `async` for a better performance on Bun (#397)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* fix(compress): add type for enconding name * refactor: remove useless `async` for a better performance on Bun

authored by Yusuke Wada · committed by GitHub · parent be548c9 · Browse files · 4 files+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+8 added−8 removed

  • other:+8 added−8 removed

4 files+8 added−8 removed

modified:deno_dist/compose.ts+2 added-2 removed
modified:deno_dist/hono.ts+2 added-2 removed
193 unmodified lines
194195 return context.res196 }197198 async handleEvent(event: FetchEvent): Promise<Response> {198 handleEvent(event: FetchEvent): Promise<Response> {199 return this.dispatch(event.request, event)200 }201202 fetch = async (request: Request, env?: E, executionCtx?: ExecutionContext) => {202 fetch = (request: Request, env?: E, executionCtx?: ExecutionContext) => {203 return this.dispatch(request, executionCtx, env)204 }205206 request(input: RequestInfo, requestInit?: RequestInit): Promise<Response> {
4 unmodified lines
modified:src/compose.ts+2 added-2 removed
modified:src/hono.ts+2 added-2 removed
193 unmodified lines
194195 return context.res196 }197198 async handleEvent(event: FetchEvent): Promise<Response> {198 handleEvent(event: FetchEvent): Promise<Response> {199 return this.dispatch(event.request, event)200 }201202 fetch = async (request: Request, env?: E, executionCtx?: ExecutionContext) => {202 fetch = (request: Request, env?: E, executionCtx?: ExecutionContext) => {203 return this.dispatch(request, executionCtx, env)204 }205206 request(input: RequestInfo, requestInit?: RequestInit): Promise<Response> {
4 unmodified lines