From 28b3afef8ae67264b9c58f0dcb7a06f992d10de2 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 9 Jul 2024 10:19:08 +0100 Subject: [PATCH] Renamed function to improve readability `insuranceDictionaryExists()` --- project/src/services/InsuranceService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/InsuranceService.ts b/project/src/services/InsuranceService.ts index c6dbb2ee..5d52cb6d 100644 --- a/project/src/services/InsuranceService.ts +++ b/project/src/services/InsuranceService.ts @@ -63,7 +63,7 @@ export class InsuranceService * @param sessionId Player id * @returns True if exists */ - public insuranceExists(sessionId: string): boolean + public isuranceDictionaryExists(sessionId: string): boolean { return this.insured[sessionId] !== undefined; } @@ -540,7 +540,7 @@ export class InsuranceService const traderId = gear.traderId; // Ensure insurance array is init - if (!this.insuranceExists(sessionId)) + if (!this.isuranceDictionaryExists(sessionId)) { this.resetInsurance(sessionId); }