From: Jérôme Benoit Date: Sun, 19 Nov 2023 10:14:34 +0000 (+0100) Subject: refactor: remove unneeded nullish coalescing X-Git-Tag: v1.2.25~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ca483a4593d7b6f1b0d1827da675fcf7e394f4b1;p=e-mobility-charging-stations-simulator.git refactor: remove unneeded nullish coalescing Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 076dfb21..6e6d0f70 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -403,8 +403,7 @@ export abstract class OCPPRequestService { params?.skipBufferingOnError === false ? '' : 'non ' }buffered message id '${messageId}' with content '${messageToSend}'`, commandName, - { name: error.name, message: error.message, stack: error.stack } ?? - Constants.EMPTY_FROZEN_OBJECT, + { name: error.name, message: error.message, stack: error.stack }, ); if (params?.skipBufferingOnError === false) { // Buffer