From e0e5e788359e44d8e7a5c89c819aaf815daa64b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Tue, 31 Jan 2017 19:01:48 -0600 Subject: [PATCH] fix: lint errors to make circle-ci green --- .../@angular/forms/test/reactive_integration_spec.ts | 10 ++++------ .../@angular/forms/test/template_integration_spec.ts | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/modules/@angular/forms/test/reactive_integration_spec.ts b/modules/@angular/forms/test/reactive_integration_spec.ts index 42cdf28f64..9e2e878b19 100644 --- a/modules/@angular/forms/test/reactive_integration_spec.ts +++ b/modules/@angular/forms/test/reactive_integration_spec.ts @@ -2099,9 +2099,8 @@ class FormControlSelectNgValue { ` }) class FormControlSelectWithCompareFn { - compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => { - return o1 && o2 ? o1.id === o2.id : o1 === o2; - }; + compareFn: + (o1: any, o2: any) => boolean = (o1: any, o2: any) => o1 && o2? o1.id === o2.id: o1 === o2; cities = [{id: 1, name: 'SF'}, {id: 2, name: 'NY'}]; form = new FormGroup({city: new FormControl({id: 1, name: 'SF'})}); } @@ -2144,9 +2143,8 @@ class FormControlSelectMultipleNgValue { ` }) class FormControlSelectMultipleWithCompareFn { - compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => { - return o1 && o2 ? o1.id === o2.id : o1 === o2; - }; + compareFn: + (o1: any, o2: any) => boolean = (o1: any, o2: any) => o1 && o2? o1.id === o2.id: o1 === o2; cities = [{id: 1, name: 'SF'}, {id: 2, name: 'NY'}]; form = new FormGroup({city: new FormControl([{id: 1, name: 'SF'}])}); } diff --git a/modules/@angular/forms/test/template_integration_spec.ts b/modules/@angular/forms/test/template_integration_spec.ts index 79f10f9aee..ff4af17df1 100644 --- a/modules/@angular/forms/test/template_integration_spec.ts +++ b/modules/@angular/forms/test/template_integration_spec.ts @@ -1369,9 +1369,8 @@ class NgModelSelectWithNullForm { ` }) class NgModelSelectWithCustomCompareFnForm { - compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => { - return o1 && o2 ? o1.id === o2.id : o1 === o2; - }; + compareFn: + (o1: any, o2: any) => boolean = (o1: any, o2: any) => o1 && o2? o1.id === o2.id: o1 === o2; selectedCity: any = {}; cities: any[] = []; } @@ -1385,9 +1384,8 @@ class NgModelSelectWithCustomCompareFnForm { ` }) class NgModelSelectMultipleWithCustomCompareFnForm { - compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => { - return o1 && o2 ? o1.id === o2.id : o1 === o2; - }; + compareFn: + (o1: any, o2: any) => boolean = (o1: any, o2: any) => o1 && o2? o1.id === o2.id: o1 === o2; selectedCities: any[] = []; cities: any[] = []; }