Skip to content

Commit

Permalink
Updated continuation token cast
Browse files Browse the repository at this point in the history
  • Loading branch information
akotalwar committed Aug 2, 2023
1 parent 732a8b6 commit 603dbdd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public OptimisticDirectExecutionContinuationToken(ParallelContinuationToken toke

public static bool IsOptimisticDirectExecutionContinuationToken(CosmosElement continuationToken)
{
CosmosObject cosmosObjectContinuationToken = (CosmosObject)continuationToken;
CosmosObject cosmosObjectContinuationToken = continuationToken as CosmosObject;
return !(cosmosObjectContinuationToken == null || !cosmosObjectContinuationToken.ContainsKey(OptimisticDirectExecutionToken));
}

Expand Down

0 comments on commit 603dbdd

Please sign in to comment.