From ca483a4593d7b6f1b0d1827da675fcf7e394f4b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 19 Nov 2023 11:14:34 +0100 Subject: [PATCH] refactor: remove unneeded nullish coalescing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ocpp/OCPPRequestService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.34.1