Skip to content

Commit

Permalink
Fix wrong or logic in statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelschwitter committed Feb 23, 2023
1 parent 39c0737 commit 87cd66b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,9 @@ function Compare-TriggerPipelineReference {
} else {
$deployedValueObj = ConvertFrom-Json $deployedValue.ToString()
$payloadValueObj = ConvertFrom-Json $payloadValue.ToString()
# when both are null, do not compare them
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) {
}
$paramValueChanges = Compare-Object -ReferenceObject $deployedValueObj -DifferenceObject $payloadValueObj
}
}
Expand Down

0 comments on commit 87cd66b

Please sign in to comment.