Skip to content

Commit

Permalink
style(ngxErrors): single line
Browse files Browse the repository at this point in the history
  • Loading branch information
toddmotto committed Apr 13, 2017
1 parent 5268c27 commit 38a8e03
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ngxerrors.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38a8e03

Please sign in to comment.