Skip to content

Commit ab08fcf

Browse files
committed
refactor: rename function
1 parent 89b7eea commit ab08fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const listSecrets = async ({ client, nextToken, secrets = [] }) => {
1414
return newSecrets
1515
}
1616

17-
const normalizedSecretValue = async ({ client, secret }) => {
17+
const normalizeSecretValue = async ({ client, secret }) => {
1818
try {
1919
// SecretString is a JSON string representation of the secret, e.g. '{"SECRET_NAME":"SECRET_VALUE"}'
2020
const { SecretString: secretString } = await client.send(new GetSecretValueCommand({ SecretId: secret.ARN }))
@@ -29,7 +29,7 @@ const normalizedSecretValue = async ({ client, secret }) => {
2929
}
3030

3131
const normalizeSecrets = async ({ client, secrets }) => {
32-
const values = await Promise.all(secrets.map((secret) => normalizedSecretValue({ client, secret })))
32+
const values = await Promise.all(secrets.map((secret) => normalizeSecretValue({ client, secret })))
3333
return Object.assign({}, ...values)
3434
}
3535

0 commit comments

Comments
 (0)