Skip to content

Commit

Permalink
chore: ieize
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Jun 11, 2022
1 parent 866560b commit 100613c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/BaseValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export abstract class BaseValidator<T> {
}

protected get shouldRunConstraints(): boolean {
return this.isValidationEnabled === null ? getGlobalValidationEnabled() : this.isValidationEnabled;
return this.isValidationEnabled ?? getGlobalValidationEnabled();
}

protected clone(): this {
Expand Down

0 comments on commit 100613c

Please sign in to comment.