From f5955911e24026e01561f2dcb9b03ee19f0b55e9 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sat, 9 Mar 2019 19:03:15 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- .../src/app/project-dashboard/project-dashboard.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/angular/src/app/project-dashboard/project-dashboard.component.ts b/web/angular/src/app/project-dashboard/project-dashboard.component.ts index 0a5c854..2f58335 100644 --- a/web/angular/src/app/project-dashboard/project-dashboard.component.ts +++ b/web/angular/src/app/project-dashboard/project-dashboard.component.ts @@ -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]