chore: fix some typos (#2528)

This commit is contained in:
Reed von Redwitz
2024-06-23 17:42:29 +02:00
committed by GitHub
parent 160148c326
commit 27578bc038
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -138,8 +138,8 @@ export class App<State> {
const middlewares = app.#router._middlewares;
// Special case when user calls one of these:
// - `app.mounApp("/", otherApp)`
// - `app.mounApp("*", otherApp)`
// - `app.mountApp("/", otherApp)`
// - `app.mountApp("*", otherApp)`
const isSelf = path === "*" || path === "/";
if (isSelf && middlewares.length > 0) {
this.#router._middlewares.push(...middlewares);