Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Sep 27, 2024
1 parent a2116a5 commit ce53457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/vaults/VaultOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,17 @@ async function listSecrets(vault: Vault): Promise<string[]> {
/**
* Changes the contents of a secret. Creates a new file if it doesn't exist.
*/
async function writeSecret(vault: Vault,
async function writeSecret(
vault: Vault,
secretName: string,
content: Buffer | string,
logger?: Logger,
): Promise<void> {
await vault.writeF(async (efs) => {
await efs.writeFile(secretName, content);
});

logger?.info(`Wrote secret ${secretName} in vault ${vault.vaultId}`);}
logger?.info(`Wrote secret ${secretName} in vault ${vault.vaultId}`);
}

export {
addSecret,
Expand Down
1 change: 0 additions & 1 deletion tests/client/handlers/vaults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,6 @@ describe('vaultsSecretsWriteFile', () => {
});
});
});

});
describe('vaultsSecretEnv', () => {
const logger = new Logger('vaultsSecretEnv test', LogLevel.WARN, [
Expand Down

0 comments on commit ce53457

Please sign in to comment.