From b74bd2ce1424ef788e33edfab49fe58580a1553a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Tue, 5 Apr 2022 17:31:28 +0100 Subject: [PATCH] refactor: remove unnecessary assignment --- lib/routes/pollingRoutes.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/routes/pollingRoutes.js b/lib/routes/pollingRoutes.js index b43008bb..2e470650 100644 --- a/lib/routes/pollingRoutes.js +++ b/lib/routes/pollingRoutes.js @@ -86,8 +86,6 @@ function poll (req, res, next) { return Promise.all([pi.pollQueries(deviceTime, req.query, machineVersion, machineModel), triggersPromise, triggersAutomationPromise]) .then(([results, triggers, triggersAutomation]) => { - const cassettes = results.cassettes - const reboot = pid && state.reboots?.[operatorId]?.[deviceId] === pid const shutdown = pid && state.shutdowns?.[operatorId]?.[deviceId] === pid const restartServices = pid && state.restartServicesMap?.[operatorId]?.[deviceId] === pid @@ -109,7 +107,6 @@ function poll (req, res, next) { receiptPrintingActive: receipt.active, smsReceiptActive: receipt.sms, enablePaperWalletOnly, - cassettes, twoWayMode: cashOutConfig.active, zeroConfLimits, reboot,