Renamed function to improve readability insuranceDictionaryExists()

This commit is contained in:
Dev 2024-07-09 10:19:08 +01:00
parent 82330f17be
commit 28b3afef8a

View File

@ -63,7 +63,7 @@ export class InsuranceService
* @param sessionId Player id * @param sessionId Player id
* @returns True if exists * @returns True if exists
*/ */
public insuranceExists(sessionId: string): boolean public isuranceDictionaryExists(sessionId: string): boolean
{ {
return this.insured[sessionId] !== undefined; return this.insured[sessionId] !== undefined;
} }
@ -540,7 +540,7 @@ export class InsuranceService
const traderId = gear.traderId; const traderId = gear.traderId;
// Ensure insurance array is init // Ensure insurance array is init
if (!this.insuranceExists(sessionId)) if (!this.isuranceDictionaryExists(sessionId))
{ {
this.resetInsurance(sessionId); this.resetInsurance(sessionId);
} }