diff --git a/sdk/storage/azure-storage-files-shares/src/share_client.cpp b/sdk/storage/azure-storage-files-shares/src/share_client.cpp index 6fc0ab1cf1..62a0a43db1 100644 --- a/sdk/storage/azure-storage-files-shares/src/share_client.cpp +++ b/sdk/storage/azure-storage-files-shares/src/share_client.cpp @@ -129,7 +129,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { const DeleteShareOptions& options) const { auto protocolLayerOptions = Details::ShareRestClient::Share::DeleteOptions(); - if (options.IncludeSnapshots.HasValue() and options.IncludeSnapshots.GetValue()) + if (options.IncludeSnapshots.HasValue() && options.IncludeSnapshots.GetValue()) { protocolLayerOptions.XMsDeleteSnapshots = Models::DeleteSnapshotsOptionType::Include; }