Skip to content

Commit

Permalink
Simplify status code namespace reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
DL444 committed Nov 19, 2023
1 parent 39de142 commit fd8e544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static async Task<HttpResponseMessage> SendRequestFollowingRedirectsAsync
}
requestCount++;

if ((currentResponse.StatusCode != System.Net.HttpStatusCode.Redirect && currentResponse.StatusCode != System.Net.HttpStatusCode.Moved) || requestCount > maxRedirects)
if ((currentResponse.StatusCode != HttpStatusCode.Redirect && currentResponse.StatusCode != HttpStatusCode.Moved) || requestCount > maxRedirects)
{
break;
}
Expand Down

0 comments on commit fd8e544

Please sign in to comment.