From 4e5d05288ccfbdfed89fbd7496e50cca9807c793 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Fri, 14 Jan 2022 07:13:37 -0600 Subject: [PATCH] Fix spelling errors in documentation comments --- lib/conditional.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/conditional.js b/lib/conditional.js index ffc4e66..d0ed287 100644 --- a/lib/conditional.js +++ b/lib/conditional.js @@ -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 @@ -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