Skip to content

Commit

Permalink
chore: use underscores for ignored values
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbash committed May 27, 2021
1 parent 7a93766 commit 6ebadee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const compose = <T>(
return applyDecorators(
...decorators,
Expose({ name }),
optional ? ValidateIf((o, v) => v !== undefined) : noop,
nullable ? ValidateIf((o, v) => v !== null) : noop,
optional ? ValidateIf((_, v) => v !== undefined) : noop,
nullable ? ValidateIf((_, v) => v !== null) : noop,
!!isArray ? IsArray() : noop,
minLength ? ArrayMinSize(minLength) : noop,
maxLength ? ArrayMaxSize(maxLength) : noop,
Expand Down

0 comments on commit 6ebadee

Please sign in to comment.