refactor: remove unused code (#19850)

This commit is contained in:
Alexander Akait 2025-08-29 14:27:40 +03:00 committed by GitHub
parent 8ea693e6a0
commit 8092e42124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -3989,12 +3989,10 @@ Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
if (name) {
const entrypoint = this.namedChunkGroups.get(name);
if (entrypoint instanceof Entrypoint) {
if (entrypoint !== undefined) {
if (module) {
entrypoint.addOrigin(module, loc, request);
}
return entrypoint;
}
} else if (entrypoint) {
throw new Error(
`Cannot add an async entrypoint with the name '${name}', because there is already an chunk group with this name`