Code lint fixes

This commit is contained in:
Victor Hagelbäck 2021-01-30 10:00:09 +01:00
parent 20b64c9acb
commit 5af6a8c452
2 changed files with 6 additions and 9 deletions

View file

@ -27,7 +27,7 @@ async function main() {
);
const client = new MqttClient(config.mqttBroker, config.mqttUsername, config.mqttPassword);
['SIGINT', 'SIGHUP', 'SIGTERM'].forEach(signal => {
['SIGINT', 'SIGHUP', 'SIGTERM'].forEach((signal) => {
process.on(signal, () => {
client.disconnect(() => process.exit(0));
});