mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +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') {
|
||||
//TODO: manage bundles
|
||||
logger.error(LogOrigin.Rx, `OSC IN: We don't take bundles`);
|
||||
logger.error(LogOrigin.Rx, 'OSC IN: Ontime is unable to handle OSC bundles');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +45,7 @@ class OscServer implements IAdapter {
|
||||
|
||||
// split message
|
||||
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)
|
||||
if (ontimeKey !== 'ontime') {
|
||||
@@ -75,7 +74,7 @@ class OscServer implements IAdapter {
|
||||
this.udpSocket.bind(port);
|
||||
}
|
||||
shutdown() {
|
||||
logger.info(LogOrigin.Rx, `OSC: Closing server`);
|
||||
logger.info(LogOrigin.Rx, 'OSC: Closing server');
|
||||
this.udpSocket?.close();
|
||||
this.udpSocket = null;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ export const eventStore = {
|
||||
for (const dataKey of changedKeys) {
|
||||
socket.sendAsJson({ type: `ontime-${dataKey}`, payload: store[dataKey] });
|
||||
}
|
||||
socket.sendAsJson({ type: `ontime-flush` });
|
||||
socket.sendAsJson({ type: 'ontime-flush' });
|
||||
isUpdatePending = null;
|
||||
changedKeys.clear();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user