-
Notifications
You must be signed in to change notification settings - Fork 4
Labels
bugSomething isn't workingSomething isn't working
Description
Lines 151 to 162 in 6653e2a
| if (!handler) { | |
| handler = async (_ctx: Context, next: NextFunction) => await next(); | |
| this._hasHandler = false; | |
| } else this._hasHandler = true; | |
| this._options = { ...this._options, ...options }; | |
| if (this._options.prefix?.trim() === "") this._options.prefix = "/"; | |
| this._languages.set("default", { name: name, description }); | |
| if (handler) { | |
| this.addToScope({ type: "default" }, handler); | |
| } | |
| return this; |
if (!handler) { // 1
handler = async (_ctx: Context, next: NextFunction) => await next();
}
// ...
if (handler) { // 2
this.addToScope({ type: "default" }, handler);
} What ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working