Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
aryanjassal committed Aug 26, 2024
1 parent cebb21c commit 7d44931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/secrets/CommandList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ class CommandList extends CommandPolykey {
logger: this.logger.getChild(PolykeyClient.name),
});
const secretPaths = await binUtils.retryAuthentication(async (auth) => {
let secretPaths: Array<string> = [];
const secretPaths: Array<string> = [];
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);
Expand Down
2 changes: 1 addition & 1 deletion tests/secrets/list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 7d44931

Please sign in to comment.