Skip to content

Commit

Permalink
docs: typescript example should use isEmpty method (guide/manually-ru…
Browse files Browse the repository at this point in the history
…nning) (#1276)
  • Loading branch information
DongSeonYoo committed Feb 11, 2024
1 parent f80553b commit 65319b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/manually-running.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const validate = (validations: ContextRunner[]) => {
return async (req: express.Request, res: express.Response, next: express.NextFunction) => {
for (const validation of validations) {
const result = await validation.run(req);
if (result.errors.length) break;
if (!result.isEmpty()) break;
}

const errors = validationResult(req);
Expand Down

0 comments on commit 65319b6

Please sign in to comment.