From f07ff8ddf9946290b2cd62700194520271bc3213 Mon Sep 17 00:00:00 2001 From: Yuriy-Kukushkin <87432006+Yuriy-Kukushkin@users.noreply.github.com> Date: Thu, 9 Sep 2021 18:03:55 +0300 Subject: [PATCH] Refactoring --- packages-generation/manifest-validator.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages-generation/manifest-validator.ps1 b/packages-generation/manifest-validator.ps1 index 6e82ae7..0065c3a 100644 --- a/packages-generation/manifest-validator.ps1 +++ b/packages-generation/manifest-validator.ps1 @@ -17,7 +17,7 @@ function Publish-Error { ) echo "::error ::$ErrorDescription" - if(-not [string]::IsNullOrEmpty($Exception)) + if (-not [string]::IsNullOrEmpty($Exception)) { Write-Output "Exception: $Exception" } @@ -67,7 +67,6 @@ $manifestJson | ForEach-Object { } } -if($Global:validationFailed) -{ +if ($Global:validationFailed) { exit 1 }