Skip to content

Commit

Permalink
Lint rule fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomshaw committed Nov 18, 2023
1 parent 8da8b25 commit cc806dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-unnecessary-type-assertion": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/no-inferrable-types": 0
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/utils/utils.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class UtilsService {
.replace(/\u0027/g, ''');
}

compare(a: any, b: any): any {
compare = (a: any, b: any): any => {
if (a.order < b.order) {
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/components/tables/tables.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class TablesComponent implements OnInit {
}
}

this.tableData = data.sort(this.utilsService.compare);
this.tableData = data.sort(this.utilsService.compare.bind(this.utilsService));
}
});
}
Expand Down

0 comments on commit cc806dd

Please sign in to comment.