From 129c7b458da6fe4aa7113bcbc20c3c6723340c88 Mon Sep 17 00:00:00 2001 From: Howard Kapustein Date: Wed, 4 Oct 2023 15:44:02 -0700 Subject: [PATCH] Fixed a redundant error check in Test-PackageDependency.Tests.ps1 (#3833) * Fixed a redundant error check in Test-PackageDependency.Tests.ps1 --- .../Powershell/Test-MsixDynamicDependency.Tests.ps1 | 2 +- .../Powershell/Test-PackageDependency.Tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 b/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 index f2c4d5dee..62b35b9b6 100644 --- a/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 +++ b/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 @@ -79,7 +79,7 @@ Function AddTestPackages } Add-AppxPackage $packageMsix $p = Get-AppxPackage $packageName - if (($p -eq $null) -Or ($p.PackageFullName -ne $packageFullName)) + if ($p -eq $null) { Write-Error $p Write-Error "Get-AppxPackage result not expected" diff --git a/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 b/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 index 7dea2cbc1..e5c7c5b45 100644 --- a/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 +++ b/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 @@ -73,7 +73,7 @@ Function AddTestPackages } Add-AppxPackage $packageMsix $p = Get-AppxPackage $packageName - if (($p -eq $null) -Or ($p.PackageFullName -ne $packageFullName)) + if ($p -eq $null) { Write-Error $p Write-Error "Get-AppxPackage result not expected"