mirror of
https://github.com/simon987/task_tracker.git
synced 2025-04-19 10:16:41 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
eaa57a060f
commit
f5955911e2
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user