From 45a32e08e7077feb719f6e8888f75ef6fd41b63b Mon Sep 17 00:00:00 2001 From: Dhoni77 Date: Wed, 1 Nov 2023 22:29:55 +0530 Subject: [PATCH] chore: fix formatting --- apps/api/src/app/benchmark/benchmark.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/api/src/app/benchmark/benchmark.service.ts b/apps/api/src/app/benchmark/benchmark.service.ts index 8c0f6c8c2..f67d69416 100644 --- a/apps/api/src/app/benchmark/benchmark.service.ts +++ b/apps/api/src/app/benchmark/benchmark.service.ts @@ -11,7 +11,7 @@ import { } from '@ghostfolio/common/config'; import { DATE_FORMAT, - calculateBenchmarkTrend, + calculateBenchmarkTrend } from '@ghostfolio/common/helper'; import { BenchmarkMarketDataDetails, @@ -39,7 +39,7 @@ export class BenchmarkService { private readonly redisCacheService: RedisCacheService, private readonly symbolProfileService: SymbolProfileService, private readonly symbolService: SymbolService - ) { } + ) {} public calculateChangeInPercentage(baseValue: number, currentValue: number) { if (baseValue && currentValue) { @@ -88,7 +88,7 @@ export class BenchmarkService { if (benchmarks) { return benchmarks; } - } catch { } + } catch {} } const benchmarkAssetProfiles = await this.getBenchmarkAssetProfiles(); @@ -226,9 +226,9 @@ export class BenchmarkService { marketPriceAtStartDate === 0 ? 0 : this.calculateChangeInPercentage( - marketPriceAtStartDate, - marketDataItem.marketPrice - ) * 100 + marketPriceAtStartDate, + marketDataItem.marketPrice + ) * 100 }; }) ]