Skip to content

Commit

Permalink
refactor: use Array.prototype.join instead of $ operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Oct 6, 2023
1 parent ed681cd commit 72ae57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (typeof parsedVersion?.prerelease?.[0] === 'string') {
if (prerelease.length > 1) {
prerelease = prerelease.slice(0, -1);
}
versionString = `${versionString}-${prerelease}`;
versionString = [ versionString, prerelease ].join('-');
}

// Check build flavor
Expand Down

0 comments on commit 72ae57a

Please sign in to comment.