Skip to content

Commit

Permalink
refactor: if env variable undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaaa committed Apr 29, 2024
1 parent 6a67071 commit 168600d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/account/kms/kmsKeyToAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type KmsAccount = LocalAccount<"aws-kms"> & {
* @returns A Local Account.
*/
export async function kmsKeyToAccount({
keyId = process.env.AWS_KMS_KEY_ID as string,
keyId = process.env.AWS_KMS_KEY_ID || "",
client = new KMSClient(),
}: KmsKeyToAccountOptions = {}): Promise<KmsAccount> {
const address = await getAddressFromKms({ keyId, client });
Expand Down

0 comments on commit 168600d

Please sign in to comment.