From cbe9acb6bc718978cae8f9d2deb155dc41020051 Mon Sep 17 00:00:00 2001 From: Vasilii Polikarpov <126792224+vpolikarpov-akvelon@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:54:51 +0200 Subject: [PATCH] Fix code style in Install-AzureCli.ps1 (#8480) Following https://github.com/actions/runner-images/commit/0795b9ed8be55c2c08f33647e103f70dd18d9df6 --- images/win/scripts/Installers/Install-AzureCli.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/images/win/scripts/Installers/Install-AzureCli.ps1 b/images/win/scripts/Installers/Install-AzureCli.ps1 index 532460f55..f5ef1724b 100644 --- a/images/win/scripts/Installers/Install-AzureCli.ps1 +++ b/images/win/scripts/Installers/Install-AzureCli.ps1 @@ -28,8 +28,7 @@ Write-Host "Warmup 'az'" $env:PATH = [Environment]::GetEnvironmentVariable('PATH', 'Machine') az --help | Out-Null -if ($LASTEXITCODE -ne 0) -{ +if ($LASTEXITCODE -ne 0) { throw "Command 'az --help' failed" }