From 7d4493149247944b35523f422921b54491e01fdf Mon Sep 17 00:00:00 2001 From: Aryan Jassal Date: Mon, 26 Aug 2024 19:34:55 +1000 Subject: [PATCH] fix: lint [ci skip] --- src/secrets/CommandList.ts | 4 ++-- tests/secrets/list.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/secrets/CommandList.ts b/src/secrets/CommandList.ts index ed5e299f..561dc360 100644 --- a/src/secrets/CommandList.ts +++ b/src/secrets/CommandList.ts @@ -49,13 +49,13 @@ class CommandList extends CommandPolykey { logger: this.logger.getChild(PolykeyClient.name), }); const secretPaths = await binUtils.retryAuthentication(async (auth) => { - let secretPaths: Array = []; + const secretPaths: Array = []; const stream = await pkClient.rpcClient.methods.vaultsSecretsList({ metadata: auth, nameOrId: vaultPattern[0], secretName: vaultPattern[1] ?? '/', }); - for await (let secret of stream) { + for await (const secret of stream) { // Remove leading slashes if (secret.path.startsWith('/')) { secret.path = secret.path.substring(1); diff --git a/tests/secrets/list.test.ts b/tests/secrets/list.test.ts index 3f39c2b6..648aed70 100644 --- a/tests/secrets/list.test.ts +++ b/tests/secrets/list.test.ts @@ -51,7 +51,7 @@ describe('commandListSecrets', () => { }, cwd: dataDir, }); - expect(result.exitCode).toBe(64); // sysexits.USAGE + expect(result.exitCode).toBe(64); // Sysexits.USAGE }, globalThis.defaultTimeout * 2, );