Skip to content

Commit

Permalink
Fix code review issue: "more than 1"
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Aug 2, 2023
1 parent 20290f2 commit e9e112b
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 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
var policies = _qoSProvider.CircuitBreaker.Policies;
if (policies.Any())
{
IAsyncPolicy policy = policies.Length >= 2
IAsyncPolicy policy = policies.Length > 1
? Policy.WrapAsync(policies)
: policies[0];

Expand Down

0 comments on commit e9e112b

Please sign in to comment.