Skip to content

Commit c1f8258

Browse files
refactor: TTL-910 if statements
1 parent 771c347 commit c1f8258

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/app/modules/reports/components/time-entries-table/time-entries-table.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,8 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
136136
this.projects.sort((a, b) => {
137137
const x = a.customer.name.toLowerCase();
138138
const y = b.customer.name.toLowerCase();
139-
if (x > y) {
140-
return 1;
141-
}
142-
if (x < y) {
143-
return -1;
144-
}
139+
if (x > y) {return 1; }
140+
if (x < y) {return -1; }
145141
return 0;
146142
});
147143
this.projects.forEach((project) => {

0 commit comments

Comments
 (0)