small fix in checking nullable variable (#2832)

This commit is contained in:
JinmingHu 2021-09-04 23:03:24 +08:00 committed by GitHub
parent 98b188330b
commit b0ebf21a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ namespace Azure { namespace Storage { namespace Blobs {
{
i.IsCurrentVersion = false;
}
if (i.BlobType == Models::BlobType::AppendBlob && !i.Details.IsSealed)
if (i.BlobType == Models::BlobType::AppendBlob && !i.Details.IsSealed.HasValue())
{
i.Details.IsSealed = false;
}
@ -310,7 +310,7 @@ namespace Azure { namespace Storage { namespace Blobs {
{
i.IsCurrentVersion = false;
}
if (i.BlobType == Models::BlobType::AppendBlob && !i.Details.IsSealed)
if (i.BlobType == Models::BlobType::AppendBlob && !i.Details.IsSealed.HasValue())
{
i.Details.IsSealed = false;
}