Sync eng/common directory with azure-sdk-tools for PR 13193 (#6856)
* Fix property name for skipVerifyChangeLog * Apply suggestion from @raych1 * Refactor ShouldVerifyChangeLog function condition * Apply suggestion from @raych1 --------- Co-authored-by: Ray Chen <raychen@microsoft.com>
This commit is contained in:
parent
b1a3020bf3
commit
be8cf03ed0
@ -11,9 +11,11 @@ Set-StrictMode -Version 3
|
||||
|
||||
function ShouldVerifyChangeLog ($PkgArtifactDetails) {
|
||||
if ($PkgArtifactDetails) {
|
||||
if ($PkgArtifactDetails.PSObject.Properties["skipVerifyChangeLog"] -eq $true) {
|
||||
if ($PkgArtifactDetails.PSObject.Properties.Name -contains "skipVerifyChangeLog") {
|
||||
if ($PkgArtifactDetails.skipVerifyChangeLog) {
|
||||
return $false
|
||||
}
|
||||
}
|
||||
|
||||
return $true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user