fix review points
This commit is contained in:
parent
26b4abc159
commit
d28f3e22c6
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -105297,7 +105297,7 @@ function getVersionFromFileContent(content, distributionName) {
|
|||||||
}
|
}
|
||||||
// By convention, action expects version 8 in the format `8.*` instead of `1.8`
|
// By convention, action expects version 8 in the format `8.*` instead of `1.8`
|
||||||
function avoidOldNotation(content) {
|
function avoidOldNotation(content) {
|
||||||
return content.substring(0, 2) === '1.' ? content.substring(2) : content;
|
return content.startsWith('1.') ? content.substring(2) : content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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`
|
// By convention, action expects version 8 in the format `8.*` instead of `1.8`
|
||||||
function avoidOldNotation(content: string): string {
|
function avoidOldNotation(content: string): string {
|
||||||
return content.substring(0, 2) === '1.' ? content.substring(2) : content;
|
return content.startsWith('1.') ? content.substring(2) : content;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user