fix: remove unneeded cast
This commit is contained in:
+2
-3
@@ -54,9 +54,8 @@ export class TTSManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const mod = (modRaw.default?.default ||
|
const mod = modRaw.default?.default || modRaw.default || modRaw;
|
||||||
modRaw.default ||
|
|
||||||
modRaw) as TTSModule;
|
|
||||||
if (!mod.name || typeof mod.generate !== 'function') {
|
if (!mod.name || typeof mod.generate !== 'function') {
|
||||||
this.log.warning('Invalid module format in %s', filePath);
|
this.log.warning('Invalid module format in %s', filePath);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user