Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/conditional.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const once = require('once');
*
* @param {(boolean|function)} condition
* If true, the middleware will be executed, else the next middleware will be
* executed. If the conddition is a function it will be executed with the req,
* executed. If the condition is a function it will be executed with the req,
* res, and next arguments. The return of the function will be used as the
* conditional.
* @param {function} success
Expand All @@ -17,7 +17,7 @@ const once = require('once');
* The middleware to conditionally execute if condition is false.
*
* @return {function}
* A middleware wraper to conditionally execute another middleware.
* A middleware wrapper to conditionally execute another middleware.
*
* @example
* // Will enable middleware for requests that use the application/json accept
Expand Down