Skip to content

Commit

Permalink
chore(polka): comment typo (#203)
Browse files Browse the repository at this point in the history
* fix(polka): typo

* fix: typo
  • Loading branch information
yuler committed Jan 16, 2024
1 parent 937e867 commit 58cb4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/polka/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Polka extends Router {
// Exit if only a single function
let i=0, len=arr.length, num=fns.length;
if (len === i && num === 1) return fns[0](req, res);
// Otherwise loop thru all middlware
// Otherwise loop thru all middleware
let next = err => err ? this.onError(err, req, res, next) : loop();
let loop = _ => res.finished || (i < len) && arr[i++](req, res, next);
arr = arr.concat(fns);
Expand Down

0 comments on commit 58cb4f7

Please sign in to comment.