[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2019-03-09 19:03:15 +00:00
parent eaa57a060f
commit f5955911e2

View File

@ -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]