Skip to content

Commit 297ceaf

Browse files
Migaroezkjac
authored andcommitted
Remove fake null checks as they are no longer needed after merge into v16 (#19109)
1 parent 8e87f22 commit 297ceaf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/PropertyEditors/BlockListElementLevelVariationTests.Editing.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,7 @@ await LanguageService.CreateAsync(
555555

556556
content = ContentService.GetById(content.Key);
557557
var savedBlocksValue = content?.Properties["blocks"]?.GetValue()?.ToString();
558-
Assert.NotNull(savedBlocksValue);
559-
blockListValue = JsonSerializer.Deserialize<BlockListValue>(savedBlocksValue);
558+
blockListValue = savedBlocksValue is null ? null : JsonSerializer.Deserialize<BlockListValue>(savedBlocksValue);
560559

561560
// limited user access means invariant data is inaccessible since AllowEditInvariantFromNonDefault is disabled
562561
if (updateWithLimitedUserAccess)
@@ -973,7 +972,7 @@ await LanguageService.CreateAsync(
973972
}
974973
else
975974
{
976-
Assert.AreEqual("null", savedBlocksValue);
975+
Assert.IsNull(savedBlocksValue);
977976
}
978977
}
979978

0 commit comments

Comments
 (0)