mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-10 13:44:30 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
@@ -385,8 +385,7 @@ export class ProjectDashboardComponent implements OnInit {
|
||||
const averageDelta = ([x, ...xs]) => {
|
||||
if (x === undefined) {
|
||||
return NaN;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return xs.reduce(
|
||||
([acc, last], x) => [acc + (x - last), x],
|
||||
[0, x]
|
||||
|
||||
Reference in New Issue
Block a user