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 a28ed32 commit 514da55Copy full SHA for 514da55
src/Octoshift/Services/GithubClient.cs
@@ -293,7 +293,7 @@ private void EnsureSuccessGraphQLResponse(JObject response)
293
private bool IsSecondaryRateLimit(HttpStatusCode statusCode, string content)
294
{
295
// Secondary rate limits return 403 or 429
296
- if (statusCode != HttpStatusCode.Forbidden && statusCode != HttpStatusCode.TooManyRequests)
+ if (statusCode is not HttpStatusCode.Forbidden and not HttpStatusCode.TooManyRequests)
297
298
return false;
299
}
0 commit comments