Skip to content

Commit

Permalink
cleanup single use local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-day authored Feb 28, 2024
1 parent 47300e5 commit ba52a57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ba52a57

Please sign in to comment.