Skip to content

Commit 0025031

Browse files
committed
fix: removing unnecessary for await for non-async iterables
1 parent b936810 commit 0025031

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/vaults/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('commandCreateVaults', () => {
6767
expect(result.exitCode).toBe(0);
6868
const list = (await polykeyAgent.vaultManager.listVaults()).keys();
6969
const namesList: string[] = [];
70-
for await (const name of list) {
70+
for (const name of list) {
7171
namesList.push(name);
7272
}
7373
expect(namesList).toContain('MyTestVault');

tests/vaults/remove.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('commandRemoveVault', () => {
8585

8686
const list = (await polykeyAgent.vaultManager.listVaults()).keys();
8787
const namesList: string[] = [];
88-
for await (const name of list) {
88+
for (const name of list) {
8989
namesList.push(name);
9090
}
9191
expect(namesList).not.toContain(vaultName);

tests/vaults/rename.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('commandRenameVault', () => {
8383

8484
const list = (await polykeyAgent.vaultManager.listVaults()).keys();
8585
const namesList: string[] = [];
86-
for await (const name of list) {
86+
for (const name of list) {
8787
namesList.push(name);
8888
}
8989
expect(namesList).toContain('RenamedVault');
@@ -110,7 +110,7 @@ describe('commandRenameVault', () => {
110110

111111
const list = (await polykeyAgent.vaultManager.listVaults()).keys();
112112
const namesList: string[] = [];
113-
for await (const name of list) {
113+
for (const name of list) {
114114
namesList.push(name);
115115
}
116116
expect(namesList).toContain(vaultName);

0 commit comments

Comments
 (0)