Update solution
This commit is contained in:
parent
660c25a321
commit
f199d27aa1
|
@ -258,9 +258,6 @@ class DotnetVersionResolver {
|
||||||
this.resolvedArgument.type = 'version';
|
this.resolvedArgument.type = 'version';
|
||||||
this.resolvedArgument.value = this.inputVersion;
|
this.resolvedArgument.value = this.inputVersion;
|
||||||
}
|
}
|
||||||
else if (!this.inputVersion) {
|
|
||||||
this.resolvedArgument.type = null;
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
this.resolvedArgument.type = 'channel';
|
this.resolvedArgument.type = 'channel';
|
||||||
const [major, minor] = this.inputVersion.split('.');
|
const [major, minor] = this.inputVersion.split('.');
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {IS_LINUX, IS_WINDOWS} from './utils';
|
||||||
import {QualityOptions} from './setup-dotnet';
|
import {QualityOptions} from './setup-dotnet';
|
||||||
|
|
||||||
export interface DotnetVersion {
|
export interface DotnetVersion {
|
||||||
type: string | null;
|
type: string;
|
||||||
value: string;
|
value: string;
|
||||||
qualityFlag: boolean;
|
qualityFlag: boolean;
|
||||||
}
|
}
|
||||||
|
@ -36,8 +36,6 @@ export class DotnetVersionResolver {
|
||||||
if (semver.valid(this.inputVersion)) {
|
if (semver.valid(this.inputVersion)) {
|
||||||
this.resolvedArgument.type = 'version';
|
this.resolvedArgument.type = 'version';
|
||||||
this.resolvedArgument.value = this.inputVersion;
|
this.resolvedArgument.value = this.inputVersion;
|
||||||
} else if (!this.inputVersion) {
|
|
||||||
this.resolvedArgument.type = null;
|
|
||||||
} else {
|
} else {
|
||||||
this.resolvedArgument.type = 'channel';
|
this.resolvedArgument.type = 'channel';
|
||||||
const [major, minor] = this.inputVersion.split('.');
|
const [major, minor] = this.inputVersion.split('.');
|
||||||
|
|
Loading…
Reference in New Issue