Skip to content

Commit 0b682be

Browse files
update
1 parent 8651fc8 commit 0b682be

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/appConfigurationImpl.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -769,11 +769,8 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
769769
const items: ConfigurationSetting[] = [];
770770
for await (const page of pageIterator) {
771771
pageWatchers.push({ etag: page.etag });
772-
for (const setting of page.items) {
773-
items.push(setting);
774-
}
772+
items.push(...page.items);
775773
}
776-
777774
return { items, pageWatchers };
778775
};
779776

@@ -814,11 +811,8 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
814811

815812
const items: ConfigurationSetting[] = [];
816813
for await (const page of pageIterator) {
817-
for (const setting of page.items) {
818-
items.push(setting);
819-
}
814+
items.push(...page.items);
820815
}
821-
822816
return items;
823817
};
824818

0 commit comments

Comments
 (0)