Remove fake null checks as they are no longer needed after merge into v16 (#19109)

This commit is contained in:
Sven Geusens
2025-04-23 07:09:00 +02:00
committed by GitHub
parent 1dc9f8540d
commit c42237ecfa

View File

@@ -555,8 +555,7 @@ internal partial class BlockListElementLevelVariationTests
content = ContentService.GetById(content.Key);
var savedBlocksValue = content?.Properties["blocks"]?.GetValue()?.ToString();
Assert.NotNull(savedBlocksValue);
blockListValue = JsonSerializer.Deserialize<BlockListValue>(savedBlocksValue);
blockListValue = savedBlocksValue is null ? null : JsonSerializer.Deserialize<BlockListValue>(savedBlocksValue);
// limited user access means invariant data is inaccessible since AllowEditInvariantFromNonDefault is disabled
if (updateWithLimitedUserAccess)
@@ -973,7 +972,7 @@ internal partial class BlockListElementLevelVariationTests
}
else
{
Assert.AreEqual("null", savedBlocksValue);
Assert.IsNull(savedBlocksValue);
}
}