diff --git a/lib/Router.js b/lib/Router.js index 495c95c..1943f2a 100644 --- a/lib/Router.js +++ b/lib/Router.js @@ -186,7 +186,7 @@ class Router { // ---------------- - function preBottom(ctx, goToButtonMiddleware) { + function preBottom(ctx, goToBottomMiddleware) { // If no route match or no methods are defined, go to next middleware if (node.isGag || !node.methods.size) { return next() @@ -199,7 +199,7 @@ class Router { return } - return goToButtonMiddleware() + return goToBottomMiddleware() } } } @@ -226,4 +226,4 @@ function getMiddleware(methods, method) { } -module.exports = Router \ No newline at end of file +module.exports = Router