We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf60246 + 6492624 commit 4135628Copy full SHA for 4135628
src/Nest/ElasticClient.cs
@@ -94,9 +94,7 @@ D descriptor
94
where R : BaseResponse
95
{
96
var config = descriptor.RequestConfiguration as IRequestConfiguration;
97
- var statusCodeAllowed = config == null
98
- || (config.AllowedStatusCodes.HasAny()
99
- && config.AllowedStatusCodes.Any(i=>i==c.HttpStatusCode));
+ var statusCodeAllowed = config != null ? config.AllowedStatusCodes.Any(i => i == c.HttpStatusCode) : false;
100
101
if (c.Success || statusCodeAllowed)
102
0 commit comments