]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: eliminate non-null assertions in 8 files (31 of 53 total)
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 16:19:37 +0000 (17:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 16:19:37 +0000 (17:19 +0100)
commit092b1b4aad1092fd8aed9aec6e54744eaaa7b56c
treee2dc9d9a354b5629dcd62ff40f6a8f805ae90d6a
parentd9a55687b99f4ae7f2a66e9b2fb95e748658aae3
refactor: eliminate non-null assertions in 8 files (31 of 53 total)

- AutomaticTransactionGenerator: extract connector status variables with
  null guards, use optional chaining for stationInfo and ATG config
- ChargingStation: replace stationInfo! with null guards and ?./?? defaults
- Helpers: replace stationInfo!.maximumPower! with ?./?? defaults
- IdTagsCache: replace stationInfo!.hashId with optional chaining
- ChargingStationWorkerBroadcastChannel: replace stationInfo!.hashId
- OCPP16IncomingRequestService: wrap firmware/diagnostics status in
  null guards, replace resetTime!/configurationKey! with safe access
- UIServerFactory: replace options!.host! with optional chaining
- Configuration: replace getConfigurationData()! with null guards
src/charging-station/AutomaticTransactionGenerator.ts
src/charging-station/Helpers.ts
src/charging-station/IdTagsCache.ts
src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ui-server/UIServerFactory.ts
src/utils/Configuration.ts