mirror of
https://github.com/actions/setup-java.git
synced 2025-04-22 02:46:46 +00:00
fix review points
This commit is contained in:
parent
26b4abc159
commit
d28f3e22c6
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue