refactor: remove unused template literals

This commit is contained in:
Carlos Valente
2025-02-15 13:58:41 +01:00
committed by Carlos Valente
parent c8bf74a719
commit 70558c5104
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -37,8 +37,7 @@ class OscServer implements IAdapter {
} }
if (msg.oscType === 'bundle') { if (msg.oscType === 'bundle') {
//TODO: manage bundles logger.error(LogOrigin.Rx, 'OSC IN: Ontime is unable to handle OSC bundles');
logger.error(LogOrigin.Rx, `OSC IN: We don't take bundles`);
return; return;
} }
@@ -46,7 +45,7 @@ class OscServer implements IAdapter {
// split message // split message
const [, ontimeKey, command, ...params] = address.split('/'); const [, ontimeKey, command, ...params] = address.split('/');
const args = oscArgs[0]?.value ?? undefined; //TODO: manage multiple args or mayeb we have no usecase const args = oscArgs[0]?.value ?? undefined;
// get first part (ontime) // get first part (ontime)
if (ontimeKey !== 'ontime') { if (ontimeKey !== 'ontime') {
@@ -75,7 +74,7 @@ class OscServer implements IAdapter {
this.udpSocket.bind(port); this.udpSocket.bind(port);
} }
shutdown() { shutdown() {
logger.info(LogOrigin.Rx, `OSC: Closing server`); logger.info(LogOrigin.Rx, 'OSC: Closing server');
this.udpSocket?.close(); this.udpSocket?.close();
this.udpSocket = null; this.udpSocket = null;
} }
+1 -1
View File
@@ -35,7 +35,7 @@ export const eventStore = {
for (const dataKey of changedKeys) { for (const dataKey of changedKeys) {
socket.sendAsJson({ type: `ontime-${dataKey}`, payload: store[dataKey] }); socket.sendAsJson({ type: `ontime-${dataKey}`, payload: store[dataKey] });
} }
socket.sendAsJson({ type: `ontime-flush` }); socket.sendAsJson({ type: 'ontime-flush' });
isUpdatePending = null; isUpdatePending = null;
changedKeys.clear(); changedKeys.clear();
}); });