refactor(tvdb): remove unnecessary try/catch block

This commit is contained in:
TOomaAh
2025-08-28 23:26:56 +02:00
parent 04f0506e90
commit be3454ca1e

View File

@@ -65,13 +65,8 @@ class Tvdb extends ExternalAPI implements TvShowProvider {
public static async getInstance(): Promise<Tvdb> {
if (!this.instance) {
try {
this.instance = new Tvdb();
await this.instance.login();
} catch (error) {
logger.error(`Failed to login to TVDB: ${error.message}`);
throw new Error('TVDB API key is not set');
}
this.instance = new Tvdb();
await this.instance.login();
}
return this.instance;