Skip to content
Myr

refactor(hono-base): don't check argument values (#2946)

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

authored by Yusuke Wada · committed by GitHub · parent 0a974ff · Browse files · 1 file+0 added−3 removed
This commit

State

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

Diff stats

1 file+0 added−3 removed

  • other:+0 added−3 removed

1 file+0 added−3 removed

modified:src/hono-base.ts-3 removed
142 unmodified lines
143 })144145 // Implementation of app.on(method, path, ...handlers[])146 this.on = (method: string | string[], path: string | string[], ...handlers: H[]) => {147 if (!method) {148 return this149 }147 for (const p of [path].flat()) {148 this.#path = p149 for (const m of [method].flat()) {150 handlers.map((handler) => {
372 unmodified lines