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.
1 parent d90efa5 commit 6492624Copy full SHA for 6492624
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