tslint arrow-parens rule (#4003)

This commit is contained in:
Eugenio Romano
2018-11-23 01:06:56 +00:00
committed by GitHub
parent 51bb6a420f
commit 34a30c0f14
194 changed files with 725 additions and 723 deletions

View File

@@ -78,7 +78,7 @@ export class SearchComponent implements AfterContentInit, OnChanges {
@Input('class')
set classList(classList: string) {
if (classList && classList.length) {
classList.split(' ').forEach(className => this._classList[className.trim()] = true);
classList.split(' ').forEach((className) => this._classList[className.trim()] = true);
this._elementRef.nativeElement.className = '';
}
}
@@ -119,8 +119,8 @@ export class SearchComponent implements AfterContentInit, OnChanges {
});
searchService.dataLoaded.subscribe(
data => this.onSearchDataLoaded(data),
error => this.onSearchDataError(error)
(data) => this.onSearchDataLoaded(data),
(error) => this.onSearchDataError(error)
);
}
@@ -162,13 +162,13 @@ export class SearchComponent implements AfterContentInit, OnChanges {
if (searchTerm) {
if (this.queryBody) {
this.searchService.searchByQueryBody(this.queryBody).subscribe(
result => this.onSearchDataLoaded(result),
err => this.onSearchDataError(err)
(result) => this.onSearchDataLoaded(result),
(err) => this.onSearchDataError(err)
);
} else {
this.searchService.search(searchTerm, this.maxResults, this.skipResults).subscribe(
result => this.onSearchDataLoaded(result),
err => this.onSearchDataError(err)
(result) => this.onSearchDataLoaded(result),
(err) => this.onSearchDataError(err)
);
}
} else {