mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 11:31:07 +07:00
Update solution
This commit is contained in:
parent
660c25a321
commit
f199d27aa1
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -258,9 +258,6 @@ class DotnetVersionResolver {
|
||||
this.resolvedArgument.type = 'version';
|
||||
this.resolvedArgument.value = this.inputVersion;
|
||||
}
|
||||
else if (!this.inputVersion) {
|
||||
this.resolvedArgument.type = null;
|
||||
}
|
||||
else {
|
||||
this.resolvedArgument.type = 'channel';
|
||||
const [major, minor] = this.inputVersion.split('.');
|
||||
|
@ -12,7 +12,7 @@ import {IS_LINUX, IS_WINDOWS} from './utils';
|
||||
import {QualityOptions} from './setup-dotnet';
|
||||
|
||||
export interface DotnetVersion {
|
||||
type: string | null;
|
||||
type: string;
|
||||
value: string;
|
||||
qualityFlag: boolean;
|
||||
}
|
||||
@ -36,8 +36,6 @@ export class DotnetVersionResolver {
|
||||
if (semver.valid(this.inputVersion)) {
|
||||
this.resolvedArgument.type = 'version';
|
||||
this.resolvedArgument.value = this.inputVersion;
|
||||
} else if (!this.inputVersion) {
|
||||
this.resolvedArgument.type = null;
|
||||
} else {
|
||||
this.resolvedArgument.type = 'channel';
|
||||
const [major, minor] = this.inputVersion.split('.');
|
||||
|
Loading…
Reference in New Issue
Block a user