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