chore: cleanup linter (#797)

This commit is contained in:
Carlos Valente
2024-03-01 23:19:05 +01:00
committed by GitHub
parent 5b01329c37
commit d87ba12b2e
4 changed files with 6 additions and 5 deletions
-1
View File
@@ -48,7 +48,6 @@ export class TimerService {
this.onUpdateCallback = timerConfig.onUpdateCallback;
this._interval = setInterval(() => {
this.update();
this.onUpdateCallback;
}, 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();
@@ -27,7 +27,7 @@ class IntegrationService {
}
shutdown() {
logger.info(LogOrigin.Tx, `Shutdown Integrations`);
logger.info(LogOrigin.Tx, 'Shutdown Integrations');
this.integrations.forEach((integration) => {
integration.shutdown();
});
@@ -62,9 +62,9 @@ export function parseTemplateNested(template: string, state: object, humanReadab
}
} else {
// 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);
}
}