We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c0737 commit 87cd66bCopy full SHA for 87cd66b
SamplesV2/ContinuousIntegrationAndDelivery/PrePostDeploymentScript.Ver2.ps1
@@ -427,8 +427,9 @@ function Compare-TriggerPipelineReference {
427
} else {
428
$deployedValueObj = ConvertFrom-Json $deployedValue.ToString()
429
$payloadValueObj = ConvertFrom-Json $payloadValue.ToString()
430
- # when both are null, do not compare them
431
- if ($null -ne $deployedValueObj -and $null -ne $payloadValueObj) {
+ # only compare the objects when one of them is non-null
+ if ($null -ne $deployedValueObj -or $null -ne $payloadValueObj) {
432
+ }
433
$paramValueChanges = Compare-Object -ReferenceObject $deployedValueObj -DifferenceObject $payloadValueObj
434
}
435
0 commit comments