diff --git a/dist/index.js b/dist/index.js index cc1cd85..42c7c12 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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' ? `🤖 By [issues-similarity-analysis](https://github.com/actions-cool/issues-similarity-analysis) diff --git a/src/public.js b/src/public.js index de3718e..eb9ed2b 100644 --- a/src/public.js +++ b/src/public.js @@ -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' ? `🤖 By [issues-similarity-analysis](https://github.com/actions-cool/issues-similarity-analysis)