Fix review points

This commit is contained in:
IvanZosimov 2022-09-27 16:41:42 +02:00
parent f2b7c181be
commit 6eb9549b62
3 changed files with 6 additions and 6 deletions

6
dist/index.js vendored
View File

@ -363,7 +363,7 @@ class DotnetCoreInstaller {
let resolvedVersion = '';
const installedByScriptPattern = /Installed version is (?<version>\d+\.\d+\.\d.*)$/m;
const preinstalledOnRunnerPattern = /.NET Core SDK with version '(?<version>\d+\.\d+\.\d.*)'/m;
let regExpressions = [
const regExpressions = [
installedByScriptPattern,
preinstalledOnRunnerPattern
];
@ -447,7 +447,7 @@ function run() {
// Proxy, auth, (etc) are still set up, even if no version is identified
//
const versions = core.getMultilineInput('dotnet-version');
let installedDotnetVersions = [];
const installedDotnetVersions = [];
const globalJsonFileInput = core.getInput('global-json-file');
if (globalJsonFileInput) {
const globalJsonPath = path_1.default.join(process.cwd(), globalJsonFileInput);
@ -473,7 +473,7 @@ function run() {
const uniqueVersions = new Set(versions);
for (const version of uniqueVersions) {
dotnetInstaller = new installer_1.DotnetCoreInstaller(version, quality);
let installedVersion = yield dotnetInstaller.installDotnet();
const installedVersion = yield dotnetInstaller.installDotnet();
installedDotnetVersions.push(installedVersion);
}
installer_1.DotnetCoreInstaller.addToPath();

View File

@ -247,7 +247,7 @@ export class DotnetCoreInstaller {
const installedByScriptPattern = /Installed version is (?<version>\d+\.\d+\.\d.*)$/m;
const preinstalledOnRunnerPattern = /.NET Core SDK with version '(?<version>\d+\.\d+\.\d.*)'/m;
let regExpressions: RegExp[] = [
const regExpressions: RegExp[] = [
installedByScriptPattern,
preinstalledOnRunnerPattern
];

View File

@ -27,7 +27,7 @@ export async function run() {
// Proxy, auth, (etc) are still set up, even if no version is identified
//
const versions = core.getMultilineInput('dotnet-version');
let installedDotnetVersions: string[] = [];
const installedDotnetVersions: string[] = [];
const globalJsonFileInput = core.getInput('global-json-file');
if (globalJsonFileInput) {
@ -62,7 +62,7 @@ export async function run() {
const uniqueVersions = new Set<string>(versions);
for (const version of uniqueVersions) {
dotnetInstaller = new DotnetCoreInstaller(version, quality);
let installedVersion = await dotnetInstaller.installDotnet();
const installedVersion = await dotnetInstaller.installDotnet();
installedDotnetVersions.push(installedVersion);
}
DotnetCoreInstaller.addToPath();