Fix eslint and prettier code formatting

This commit is contained in:
Matteo Dell'Acqua 2023-05-22 17:06:49 +02:00
parent a7a75759e9
commit 72ac9779ce

View File

@ -12,7 +12,8 @@ const ALLOW_PRERELEASE = core.getInput('vs-prerelease') || 'false'
let MSBUILD_ARCH = core.getInput('msbuild-architecture') || 'x86' let MSBUILD_ARCH = core.getInput('msbuild-architecture') || 'x86'
// if a specific version of VS is requested // if a specific version of VS is requested
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild -property installationPath -latest ' let VSWHERE_EXEC =
'-products * -requires Microsoft.Component.MSBuild -property installationPath -latest '
if (ALLOW_PRERELEASE === 'true') { if (ALLOW_PRERELEASE === 'true') {
VSWHERE_EXEC += ' -prerelease ' VSWHERE_EXEC += ' -prerelease '
} }
@ -77,7 +78,7 @@ async function run(): Promise<void> {
if (MSBUILD_ARCH === 'x64') { if (MSBUILD_ARCH === 'x64') {
MSBUILD_ARCH = 'amd64' MSBUILD_ARCH = 'amd64'
} }
let toolPath = path.join( const toolPath = path.join(
installationPath, installationPath,
`MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe` `MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe`
) )