From a05ab9301d08527f09288e15ac9a616549dc5c35 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Sun, 21 Mar 2021 19:01:51 +0800 Subject: [PATCH] refactor code style --- dist/index.js | 3 +-- src/public.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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)