'else' is not needed
MODIFY
src/scheduler/tasks/ocpi/OCPIPushLocationsTask.ts
src/scheduler/tasks/ocpi/OCPIPushLocationsTask.ts
@@ -49,7 +49,8 @@ export default class OCPIPushLocationsTask extends SchedulerTask {
message: `The OCPI Endpoint ${ocpiEndpoint.name} is not registered. Skipping the ocpiendpoint.`
});
return;
- } else if (!ocpiEndpoint.backgroundPatchJob) {
+ }
+ if (!ocpiEndpoint.backgroundPatchJob) {
Logging.logDebug({
tenantID: tenant.id,
module: MODULE_NAME, method: 'processOCPIEndpoint',

MODIFY
src/scheduler/tasks/oicp/OICPPushEvseDataTask.ts
src/scheduler/tasks/oicp/OICPPushEvseDataTask.ts
@@ -49,7 +49,8 @@ export default class OICPPushEvseDataTask extends SchedulerTask {
message: `The OICP Endpoint ${oicpEndpoint.name} is not registered. Skipping the oicpendpoint.`
});
return;
- } else if (!oicpEndpoint.backgroundPatchJob) {
+ }
+ if (!oicpEndpoint.backgroundPatchJob) {
Logging.logDebug({
tenantID: tenant.id,
module: MODULE_NAME, method: 'processOICPEndpoint',

MODIFY
src/scheduler/tasks/oicp/OICPPushEvseStatusTask.ts
src/scheduler/tasks/oicp/OICPPushEvseStatusTask.ts
@@ -49,7 +49,8 @@ export default class OICPPushEvseStatusTask extends SchedulerTask {
message: `The OICP Endpoint ${oicpEndpoint.name} is not registered. Skipping the oicpendpoint.`
});
return;
- } else if (!oicpEndpoint.backgroundPatchJob) {
+ }
+ if (!oicpEndpoint.backgroundPatchJob) {
Logging.logDebug({
tenantID: tenant.id,
module: MODULE_NAME, method: 'processOICPEndpoint',

'else' is not needed