Skip to content

Commit 4d658b5

Browse files
committed
refactor: Remove dead code in parseMetadataXml
The second if block checking web_app paths can never execute because: - web_app bundles don't have meta.xml files - super.parseMetadataXml() returns undefined for web_app paths - The condition 'xml && isWebAppBaseType(path)' is always false
1 parent dd0eddb commit 4d658b5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/resolve/adapters/digitalExperienceSourceAdapter.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,6 @@ export class DigitalExperienceSourceAdapter extends BundleSourceAdapter {
191191
path: xml.path,
192192
};
193193
}
194-
if (xml && isWebAppBaseType(path)) {
195-
return {
196-
fullName: this.getBundleName(path),
197-
suffix: xml.suffix,
198-
path: xml.path,
199-
};
200-
}
201194
}
202195

203196
private populateWebAppBundle(trigger: string, component?: SourceComponent): SourceComponent {

0 commit comments

Comments
 (0)