Skip to content

Commit 214d8cb

Browse files
committed
fix: removing await from some for loops because they are not async iterables
1 parent 110b70a commit 214d8cb

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/client/handlers/VaultsList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VaultsList extends ServerHandler<
2929
const vaults = await db.withTransactionF((tran) =>
3030
vaultManager.listVaults(ctx, tran),
3131
);
32-
for await (const [vaultName, vaultId] of vaults) {
32+
for (const [vaultName, vaultId] of vaults) {
3333
ctx.signal.throwIfAborted();
3434
yield {
3535
vaultName: vaultName,

src/client/handlers/VaultsSecretsList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class VaultsSecretsList extends ServerHandler<
6666
}
6767
throw e;
6868
}
69-
for await (const file of files) {
69+
for (const file of files) {
7070
ctx.signal.throwIfAborted();
7171
const filePath = path.join(input.secretName, file.toString());
7272
const stat = await fs.promises.stat(filePath);

src/keys/KeyRing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class KeyRing {
6060
fs?: FileSystem;
6161
logger?: Logger;
6262
fresh?: boolean;
63-
} & ( // eslint-disable-next-line @typescript-eslint/ban-types
63+
} & (
6464
| {}
6565
| {
6666
recoveryCode: RecoveryCode;

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ type InverseRecord<
194194
* Used when an empty object is needed.
195195
* Defined here with a linter override to avoid a false positive.
196196
*/
197-
// eslint-disable-next-line @typescript-eslint/ban-types
198197
type ObjectEmpty = {};
199198

200199
/**

src/vaults/VaultInternal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ class VaultInternal {
12191219
dir: this.vaultDataDir,
12201220
gitdir: this.vaultGitDir,
12211221
});
1222-
for await (const [filePath, , workingDirStatus] of statusMatrix) {
1222+
for (const [filePath, , workingDirStatus] of statusMatrix) {
12231223
ctx.signal.throwIfAborted();
12241224
// Stage all changes across all files. This is needed so that we can
12251225
// checkout all untracked files as well.

0 commit comments

Comments
 (0)