mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 20:39:18 +00:00
refactor: remove unused template literals
This commit is contained in:
committed by
Carlos Valente
parent
c8bf74a719
commit
70558c5104
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user