Skip to content

Commit

Permalink
Remove unnecessary concat
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Aug 5, 2022
1 parent 919f036 commit b459f60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/astro/src/core/build/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export function* getTopLevelPages(
ctx: { getModuleInfo: GetModuleInfo }
): Generator<ModuleInfo, void, unknown> {
for (const info of walkParentInfos(id, ctx)) {
const importers = (info?.importers || []).concat(info?.dynamicImporters || []);
if (importers[0] === resolvedPagesVirtualModuleId) {
if (info?.importers[0] === resolvedPagesVirtualModuleId) {
yield info;
}
}
Expand Down

0 comments on commit b459f60

Please sign in to comment.