diff --git a/src/ngxerrors.directive.ts b/src/ngxerrors.directive.ts index 9d8cbaa..bc1e186 100755 --- a/src/ngxerrors.directive.ts +++ b/src/ngxerrors.directive.ts @@ -38,9 +38,7 @@ export class NgxErrorsDirective implements OnChanges, AfterViewInit { } checkControlProps(props: ErrorOptions) { - return ( - !props ? true : toArray(props).every((prop: string) => this.control[prop]) - ); + return !props ? true : toArray(props).every((prop: string) => this.control[prop]); } hasError(name: string, conditions: ErrorOptions): boolean {