- caseInsensitive = false,
-): void => {
- const keyFound = getConfigurationKey(chargingStation, key, caseInsensitive);
- if (keyFound !== undefined) {
+ caseInsensitive = false
+): ConfigurationKey | undefined => {
+ const keyFound = getConfigurationKey(chargingStation, key, caseInsensitive)
+ if (keyFound != null) {
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion