diff --git a/src/modules/evbc/config_model.ts b/src/modules/evbc/config_model.ts index 688f8a89..fa2f2246 100644 --- a/src/modules/evbc/config_model.ts +++ b/src/modules/evbc/config_model.ts @@ -244,11 +244,9 @@ class EVConfigModel { return this._instances[id]; } - interfaces_match(provide: string, requirement: string) { - if (provide === requirement) return true; - // still difficult to read :( - if (this._interface_parents[provide].has(requirement)) return true; - return false; + interfaces_match(provide: string, requirement: string): boolean { + return provide === requirement || + (this._interface_parents[provide]?.has(requirement) ?? false); } serialize(): EverestConfig {