Skip to content

Commit

Permalink
create release
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Mar 17, 2021
1 parent 20afff9 commit 6930747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Expand Up @@ -16876,7 +16876,9 @@ class DotNetVersionInfo {
this.throwInvalidVersionFormat();
}
const major = this.getVersionNumberOrThrow(parts[0]);
const minor = ['x', '*'].includes(parts[1]) ? parts[1] : this.getVersionNumberOrThrow(parts[1]);
const minor = ['x', '*'].includes(parts[1])
? parts[1]
: this.getVersionNumberOrThrow(parts[1]);
this.fullversion = major + '.' + minor;
}
getVersionNumberOrThrow(input) {
Expand Down
4 changes: 3 additions & 1 deletion src/installer.ts
Expand Up @@ -39,7 +39,9 @@ export class DotNetVersionInfo {
}

const major = this.getVersionNumberOrThrow(parts[0]);
const minor = ['x', '*'].includes(parts[1]) ? parts[1] : this.getVersionNumberOrThrow(parts[1]);
const minor = ['x', '*'].includes(parts[1])
? parts[1]
: this.getVersionNumberOrThrow(parts[1]);

this.fullversion = major + '.' + minor;
}
Expand Down

0 comments on commit 6930747

Please sign in to comment.