lint: Comma dangle

This commit is contained in:
Cohee
2023-12-02 22:06:57 +02:00
parent 08fedf3a96
commit 64a3564892
53 changed files with 388 additions and 384 deletions

View File

@ -79,7 +79,7 @@ class EdgeTtsProvider {
this.voices = await this.fetchTtsVoiceObjects();
}
const match = this.voices.filter(
voice => voice.name == voiceName
voice => voice.name == voiceName,
)[0];
if (!match) {
throw `TTS Voice name ${voiceName} not found`;
@ -142,8 +142,8 @@ class EdgeTtsProvider {
'text': inputText,
'voice': voiceId,
'rate': Number(this.settings.rate),
})
}
}),
},
);
if (!response.ok) {
toastr.error(response.statusText, 'TTS Generation Failed');