From ba52a57880b77d9c2691edfa7a84822297ed214f Mon Sep 17 00:00:00 2001 From: Craig Day Date: Wed, 28 Feb 2024 09:39:04 -0800 Subject: [PATCH] cleanup single use local variable --- action.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.js b/action.js index 88379f5..dcd5e15 100644 --- a/action.js +++ b/action.js @@ -54,9 +54,8 @@ function isNullString(string) { function initialTag(tag) { const isPrerelease = core.getInput('version_type') == Semantic.Prerelease const suffix = core.getInput('prerelease_suffix') - const newTag = isPrerelease ? `${tag}-${suffix}` : tag - - return `${newTag}` + + return isPrerelease ? `${tag}-${suffix}` : tag } async function existingTags() {