Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Fix deprecated syntax using
Browse files Browse the repository at this point in the history
  • Loading branch information
DeLaGuardo committed Mar 15, 2021
1 parent 4afdfff commit 732d7a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/setup-graalvm.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function run() {
if (deprecatedVersion) {
const versionParts = deprecatedVersion.match(/(.*)\.(java\d{1,2})$/);
if (versionParts) {
yield installer.getGraalVM(versionParts[0], versionParts[1], arch);
yield installer.getGraalVM(versionParts[1], versionParts[2], arch);
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/setup-graalvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function run(): Promise<void> {
if (deprecatedVersion) {
const versionParts = deprecatedVersion.match(/(.*)\.(java\d{1,2})$/)
if (versionParts) {
await installer.getGraalVM(versionParts[0], versionParts[1], arch)
await installer.getGraalVM(versionParts[1], versionParts[2], arch)
}
} else {
await installer.getGraalVM(graalvm, java, arch)
Expand Down

0 comments on commit 732d7a7

Please sign in to comment.