From 16beb3eba57599e33fb7153641a05cea9264bf0d Mon Sep 17 00:00:00 2001 From: Dan Macumber Date: Mon, 25 Jan 2021 10:28:49 -0700 Subject: [PATCH] Use string interpolation --- dist/index.js | 4 ++-- src/message-card.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index d697f94a..a67a34d4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2448,10 +2448,10 @@ function createMessageCard(notificationSummary, notificationColor, commit, autho avatar_url = author.avatar_url; } } - let author_url = ""; + let author_url = ''; if (author) { if (author.login && author.html_url) { - author_url = "[(@${author.login})](${author.html_url})"; + author_url = `[(@${author.login})](${author.html_url})`; } } const messageCard = { diff --git a/src/message-card.ts b/src/message-card.ts index b69382c6..09650517 100644 --- a/src/message-card.ts +++ b/src/message-card.ts @@ -20,7 +20,7 @@ export function createMessageCard( let author_url = '' if (author) { if (author.login && author.html_url) { - author_url = '[(@${author.login})](${author.html_url})' + author_url = `[(@${author.login})](${author.html_url})` } } const messageCard = {