Skip to content

Commit 982ce34

Browse files
committed
Incorporate code review feedback
1 parent 2c9f2a2 commit 982ce34

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Microsoft.Azure.Cosmos/src/Handler/RequestMessage.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,12 @@ private bool AssertPartitioningPropertiesAndHeaders()
386386
bool partitionKeyRangeIdExists = !string.IsNullOrEmpty(this.Headers.PartitionKeyRangeId);
387387
if (partitionKeyRangeIdExists)
388388
{
389-
OperationType op = this.OperationType;
389+
OperationType operationType = this.OperationType;
390390
// Assert operation type is not write
391-
if (op != OperationType.Query && op != OperationType.QueryPlan && op != OperationType.ReadFeed && op != OperationType.Batch)
391+
if (operationType != OperationType.Query
392+
&& operationType != OperationType.QueryPlan
393+
&& operationType != OperationType.ReadFeed
394+
&& operationType != OperationType.Batch)
392395
{
393396
throw new ArgumentOutOfRangeException(RMResources.UnexpectedPartitionKeyRangeId);
394397
}

0 commit comments

Comments
 (0)