Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
[Lib] Ignore if
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Jan 20, 2017
1 parent fbd9690 commit c57fe0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function validationCallback(req, res, next, options) {
function middleware(schema, options = optionsDefault) {
return (req, res, next) => {
// Test if schema exists
/* istanbul ignore if */
if (!schema) {
next();
}
Expand Down

0 comments on commit c57fe0b

Please sign in to comment.