Skip to content

Commit

Permalink
refactor(hono-base): don't check argument values (#2946)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Jun 9, 2024
1 parent 0a974ff commit ddb1d86
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hono-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends string =

// Implementation of app.on(method, path, ...handlers[])
this.on = (method: string | string[], path: string | string[], ...handlers: H[]) => {
if (!method) {
return this
}
for (const p of [path].flat()) {
this.#path = p
for (const m of [method].flat()) {
Expand Down

0 comments on commit ddb1d86

Please sign in to comment.