- private getConnectorAffinityIdTag(chargingStation: ChargingStation, connectorId: number): string {
- const file = ChargingStationUtils.getIdTagsFile(chargingStation.stationInfo);
- const idTags = this.getIdTags(file);
- const hashId = chargingStation.stationInfo.hashId;
- const addressableKey = this.getIdTagsCacheIndexesAddressableKey(file, hashId);
+ private getConnectorAffinityIdTag (chargingStation: ChargingStation, connectorId: number): string {
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ const file = getIdTagsFile(chargingStation.stationInfo!)!
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ const idTags = this.getIdTags(file)!
+ const addressableKey = this.getIdTagsCacheIndexesAddressableKey(
+ file,
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ chargingStation.stationInfo!.hashId
+ )