Skip to content

Commit

Permalink
Cleanup for #1161
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed May 13, 2017
1 parent cd01c65 commit d8af6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/alternatives.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ internals.Alternatives = class extends Any {
}
}
else if (item.then) {
return (item.then)._validate(value, state, options);
return item.then._validate(value, state, options);
}

if (i === (il - 1) && baseType) {
return (baseType)._validate(value, state, options);
return baseType._validate(value, state, options);
}

continue;
Expand Down

0 comments on commit d8af6ab

Please sign in to comment.