reverts change for IsDecompressed

This commit is contained in:
Shannon
2021-01-27 15:16:22 +11:00
parent 1a92fdcca8
commit 57708960f0

View File

@@ -185,16 +185,8 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
}
else if (value is LazyCompressedString lazyCompressedString)
{
if (lazyCompressedString.IsDecompressed)
{
PrimitiveSerializer.Char.WriteTo(PrefixString, stream);
PrimitiveSerializer.String.WriteTo(lazyCompressedString, stream);
}
else
{
PrimitiveSerializer.Char.WriteTo(PrefixCompressedStringByteArray, stream);
PrimitiveSerializer.Bytes.WriteTo(lazyCompressedString.GetBytes(), stream);
}
PrimitiveSerializer.Char.WriteTo(PrefixCompressedStringByteArray, stream);
PrimitiveSerializer.Bytes.WriteTo(lazyCompressedString.GetBytes(), stream);
}
else if (value is sbyte signedByteValue)
{