You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Scripts/Helpers/Confirm-ObjectValueEqualityDeep.ps1
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ function Confirm-ObjectValueEqualityDeep {
40
40
# This resolves a unique situation where GraphApi returns a string instead of an array for a metadata value, very unique situation
41
41
# By testing the json and count, we can confirm that it is a json string and convert it to an array
42
42
# A try catch is included to revert to the value we normally use in the event of failure just in case there is a scenario that has not been accounted for
43
-
if ($(Test-Json-InputObject$Object1) -and$Object1.count-eq1) {
43
+
if ($(Test-Json-Json$Object1) -and$Object1.count-eq1) {
44
44
try {
45
45
$Object1=$Object1|ConvertFrom-Json-Depth 100
46
46
}
@@ -54,7 +54,7 @@ function Confirm-ObjectValueEqualityDeep {
54
54
# This resolves a unique situation where GraphApi returns a string instead of an array for a metadata value, very unique situation
55
55
# By testing the json and count, we can confirm that it is a json string and convert it to an array
56
56
# A try catch is included to revert to the value we normally use in the event of failure just in case there is a scenario that has not been accounted for
57
-
if ($(Test-Json-InputObject$Object2) -and$Object2.count-eq1) {
57
+
if ($(Test-Json-Json$Object2) -and$Object2.count-eq1) {
0 commit comments