Skip to content

Commit

Permalink
chore: fix some typos (#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
deer authored Jun 23, 2024
1 parent 160148c commit 27578bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/fs_routes/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export async function fsRoutes<State>(
let parent = mod.path.slice(0, -"_error".length);
parent = parent === "/" ? "*" : parent + "*";

// Add error route as it's own route
// Add error route as its own route
if (!specialPaths.has(mod.path)) {
specialPaths.add(mod.path);
app.all(
Expand Down

0 comments on commit 27578bc

Please sign in to comment.