chore: remove the need for the method in the autoconfig

This commit is contained in:
J H
2024-07-26 15:12:22 -06:00
parent 9480758310
commit bf55367f4d

View File

@@ -886,10 +886,7 @@ export class SystemForEmbassy implements System {
// TODO: docker
const moduleCode = await this.moduleCode
const method = moduleCode.dependencies?.[id]?.autoConfigure
if (!method)
throw new Error(
`Expecting that the method dependency autoConfigure ${id} exists`,
)
if (!method) return
return (await method(
polyfillEffects(effects, this.manifest),
oldConfig as any,