Skip to content

Commit

Permalink
Use string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacusb2 committed Jan 25, 2021
1 parent 1cfb627 commit 16beb3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/message-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 16beb3e

Please sign in to comment.