mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
chore: cleanup linter (#797)
This commit is contained in:
@@ -48,7 +48,6 @@ export class TimerService {
|
|||||||
this.onUpdateCallback = timerConfig.onUpdateCallback;
|
this.onUpdateCallback = timerConfig.onUpdateCallback;
|
||||||
this._interval = setInterval(() => {
|
this._interval = setInterval(() => {
|
||||||
this.update();
|
this.update();
|
||||||
this.onUpdateCallback;
|
|
||||||
}, TimerService._updateInterval);
|
}, TimerService._updateInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,9 @@ export class HttpIntegration implements IIntegration<HttpSubscription> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
shutdown() {}
|
shutdown() {
|
||||||
|
/** shutdown is a no-op here*/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const httpIntegration = new HttpIntegration();
|
export const httpIntegration = new HttpIntegration();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class IntegrationService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shutdown() {
|
shutdown() {
|
||||||
logger.info(LogOrigin.Tx, `Shutdown Integrations`);
|
logger.info(LogOrigin.Tx, 'Shutdown Integrations');
|
||||||
this.integrations.forEach((integration) => {
|
this.integrations.forEach((integration) => {
|
||||||
integration.shutdown();
|
integration.shutdown();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ export function parseTemplateNested(template: string, state: object, humanReadab
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// iterate through variable parts, and look for the property in the state object
|
// iterate through variable parts, and look for the property in the state object
|
||||||
value = variableParts.reduce((obj, key) => obj && obj[key], state);
|
value = variableParts.reduce((obj, key) => obj?.[key], state);
|
||||||
}
|
}
|
||||||
if (typeof value !== 'undefined') {
|
if (value !== undefined) {
|
||||||
parsedTemplate = parsedTemplate.replace(match[0], value);
|
parsedTemplate = parsedTemplate.replace(match[0], value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user