fix lint errors

This commit is contained in:
Dave Horton
2023-02-07 08:26:38 -05:00
parent fbae7c0eab
commit 61dbb659b3
2 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
name: CI name: CI
on: on: [push, pull_request]
push:
jobs: jobs:
build: build:

View File

@@ -171,7 +171,10 @@ class TaskGather extends Task {
vendor: this.vendor vendor: this.vendor
}).catch((err) => this.logger.info({err}, 'Error generating alert for no stt')); }).catch((err) => this.logger.info({err}, 'Error generating alert for no stt'));
// Notify application that STT vender is wrong. // Notify application that STT vender is wrong.
this.notifyError({msg: 'ASR error', details: `No speech-to-text service credentials for ${this.vendor} have been configured`}); this.notifyError({
msg: 'ASR error',
details: `No speech-to-text service credentials for ${this.vendor} have been configured`
});
this.notifyTaskDone(); this.notifyTaskDone();
throw new Error(`No speech-to-text service credentials for ${this.vendor} have been configured`); throw new Error(`No speech-to-text service credentials for ${this.vendor} have been configured`);
} }