diff options
author | Manuel de la Pena <mandel@microsoft.com> | 2018-12-20 16:55:34 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-12-21 15:12:53 +0300 |
commit | 5ce08b84332f220b69f914816bb768f591a4998b (patch) | |
tree | 703cbea28005aa8e4b20faa3d54b697d31420960 /mcs/class/System.Net.Http | |
parent | 5c2267c5a76c2fdc160b23b816a6b1bd89df7a95 (diff) |
Minor style changes.
Diffstat (limited to 'mcs/class/System.Net.Http')
-rw-r--r-- | mcs/class/System.Net.Http/CFNetworkHandler.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mcs/class/System.Net.Http/CFNetworkHandler.cs b/mcs/class/System.Net.Http/CFNetworkHandler.cs index 315dfe5fa08..b20b0bb807f 100644 --- a/mcs/class/System.Net.Http/CFNetworkHandler.cs +++ b/mcs/class/System.Net.Http/CFNetworkHandler.cs @@ -269,13 +269,11 @@ namespace System.Net.Http bucket.StreamCanBeDisposed = true; // remove headers in a redirect for Authentication. request.Headers.Authorization = null; - var redirectResponse = await SendAsync (request, cancellationToken, false).ConfigureAwait (false); - return redirectResponse; + return await SendAsync (request, cancellationToken, false).ConfigureAwait (false); } return initialRequest; - } else { - return await response.Task; - } + } + return await response.Task; } // Decide if we redirect or not, similar to what is done in the managed handler |