refactor: remove unneeded nullish coalescing
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 19 Nov 2023 10:14:34 +0000 (11:14 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 19 Nov 2023 10:14:34 +0000 (11:14 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 076dfb2166e3d38ca4bbe4c0ba67cd727c1bc514..6e6d0f70db4a6a2554c5707287209c3525972191 100644 (file)
@@ -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