fix review points

This commit is contained in:
Evgenii Korolevskii 2022-12-08 12:31:13 +01:00
parent 26b4abc159
commit d28f3e22c6
2 changed files with 2 additions and 2 deletions

View file

@ -149,5 +149,5 @@ function getVersionFromFileContent(content: string, distributionName: string): s
// By convention, action expects version 8 in the format `8.*` instead of `1.8`
function avoidOldNotation(content: string): string {
return content.substring(0, 2) === '1.' ? content.substring(2) : content;
return content.startsWith('1.') ? content.substring(2) : content;
}