Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
kathy-t committed Jul 28, 2022
1 parent 414d4e8 commit 6b03c62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cloud-watch-to-slack-testing/deployment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ function ssmOrSigninMessageText(message) {
} else if (message.detail.userIdentity.type === "AssumedRole") {
const accountId = message.detail.userIdentity.accountId;
// Don't display account ID
user = message.detail.userIdentity.arn.replace(accountId, "X".repeat(accountId.length));
user = message.detail.userIdentity.arn.replace(
accountId,
"X".repeat(accountId.length)
);
}
messageText = `${user} initiated AWS Systems Manager (SSM) event ${eventName}`;
} else if (message.source === "aws.signin") {
Expand Down

0 comments on commit 6b03c62

Please sign in to comment.