fix: lint errors to make circle-ci green

This commit is contained in:
Miško Hevery 2017-01-31 19:01:48 -06:00
parent b4214d60a6
commit e0e5e78835
2 changed files with 8 additions and 12 deletions

View File

@ -2099,9 +2099,8 @@ class FormControlSelectNgValue {
</div>`
})
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 {
</div>`
})
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'}])});
}

View File

@ -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[] = [];
}