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

@@ -123,7 +123,7 @@ export class ChecklistComponent implements OnChanges {
public delete(taskId: string) {
this.activitiTaskList.deleteTask(taskId).subscribe(
() => {
this.checklist = this.checklist.filter(check => check.id !== taskId);
this.checklist = this.checklist.filter((check) => check.id !== taskId);
this.checklistTaskDeleted.emit(taskId);
},
(error) => {

View File

@@ -268,7 +268,7 @@ describe('StartTaskComponent', () => {
let attachFormToATask = spyOn(service, 'attachFormToATask').and.returnValue(of());
spyOn(service, 'createNewTask').and.callFake(
function() {
return new Observable(observer => {
return new Observable((observer) => {
observer.next({ id: 'task-id'});
observer.complete();
});

View File

@@ -195,7 +195,7 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
this.formRenderingService.setComponentTypeResolver('select-folder', () => AttachFolderWidgetComponent, true);
this.formRenderingService.setComponentTypeResolver('upload', () => AttachFileWidgetComponent, true);
this.peopleSearch = new Observable<UserProcessModel[]>(observer => this.peopleSearchObserver = observer)
this.peopleSearch = new Observable<UserProcessModel[]>((observer) => this.peopleSearchObserver = observer)
.pipe(share());
this.authService.getBpmLoggedUser().subscribe((user: UserRepresentation) => {
this.currentLoggedUser = user;
@@ -469,7 +469,7 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
.subscribe((users) => {
users = users.filter((user) => user.id !== this.taskDetails.assignee.id);
this.peopleSearchObserver.next(users);
}, error => this.logService.error('Could not load users'));
}, (error) => this.logService.error('Could not load users'));
}
onCloseSearch() {

View File

@@ -130,7 +130,7 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
*/
getFiltersByAppName(appName: string) {
this.appsProcessService.getDeployedApplicationsByName(appName).subscribe(
application => {
(application) => {
this.getFiltersByAppId(application.id);
},
(err) => {

View File

@@ -322,7 +322,7 @@ describe('TaskListComponent', () => {
});
let rowEvent = new DataRowEvent(row, null);
component.rowClick.subscribe(taskId => {
component.rowClick.subscribe((taskId) => {
expect(taskId).toEqual('999');
expect(component.getCurrentId()).toEqual('999');
done();

View File

@@ -347,7 +347,7 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
* @param instances
*/
private optimizeTaskDetails(instances: any[]): any[] {
instances = instances.map(task => {
instances = instances.map((task) => {
if (!task.name) {
task.name = 'No name';
}