]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: use string/array helper functions consistently
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 14:27:05 +0000 (16:27 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 14:27:05 +0000 (16:27 +0200)
commit157786a376b410b1a72e6e3fbd6319fbd7749e56
treede537bc034ed1215fb0bc8ad04778ccec6e39533
parent67edd21f77ca7172bab1d95f489a41eaed2181d9
refactor: use string/array helper functions consistently

Replace 9 manual .trim().length checks with isEmpty() and
isNotEmptyString() helpers. Replace Array.isArray+length
guards with isNotEmptyArray() in StatisticUtils. Simplify
isValidIdentifierValue to delegate to isNotEmptyString.
Replace hardcoded SecurityCtrlr.OrganizationName string
with OCPP20ComponentName/RequiredVariableName enums.
src/charging-station/ocpp/2.0/OCPP20CertificateManager.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts
src/charging-station/ocpp/auth/utils/AuthValidators.ts
src/utils/Configuration.ts
src/utils/ConfigurationMigration.ts
src/utils/StatisticUtils.ts