Skip to content

Commit 46cb4b6

Browse files
committed
fixed faulty change
1 parent cd3ce3a commit 46cb4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public override async Task<ResponseMessage> SendAsync(
8181

8282
AvailabilityStrategy strategy = this.AvailabilityStrategy(request);
8383

84-
if ((bool)(strategy?.Enabled()))
84+
if (strategy != null && strategy.Enabled())
8585
{
8686
return await strategy.ExecuteAvailabilityStrategyAsync(
8787
this.BaseSendAsync,

0 commit comments

Comments
 (0)