Skip to content

Commit

Permalink
refactor code style
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Mar 21, 2021
1 parent 5b4d3c4 commit a05ab93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6413,8 +6413,7 @@ async function doIssueComment(owner, repo, number, issues, commentTitle, comment
}
});

let showFooter = core.getInput('show-footer');
if (showFooter == undefined) showFooter = 'true';
const showFooter = core.getInput('show-footer') || 'true';
const footer =
showFooter == 'true'
? `<sub>🤖 By [issues-similarity-analysis](https://github.com/actions-cool/issues-similarity-analysis)</sub>
Expand Down
3 changes: 1 addition & 2 deletions src/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ async function doIssueComment(owner, repo, number, issues, commentTitle, comment
}
});

let showFooter = core.getInput('show-footer');
if (showFooter == undefined) showFooter = 'true';
const showFooter = core.getInput('show-footer') || 'true';
const footer =
showFooter == 'true'
? `<sub>🤖 By [issues-similarity-analysis](https://github.com/actions-cool/issues-similarity-analysis)</sub>
Expand Down

0 comments on commit a05ab93

Please sign in to comment.