Skip to content

Commit

Permalink
Update solution
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanZosimov committed Apr 10, 2023
1 parent 660c25a commit f199d27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('.');
Expand Down
4 changes: 1 addition & 3 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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('.');
Expand Down

0 comments on commit f199d27

Please sign in to comment.