Remove unused variable for System.Net.Requests, as part of #30457 (#33619)
authorhandlespeed <handlespeed@163.com>
Mon, 16 Mar 2020 11:27:25 +0000 (19:27 +0800)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2020 11:27:25 +0000 (07:27 -0400)
src/libraries/System.Net.Requests/src/System/Net/FtpControlStream.cs, remove unused variable 'request' in L414.

Partially Fix #30457

src/libraries/System.Net.Requests/src/System/Net/FtpControlStream.cs

index 136e0a6..d2fdb5f 100644 (file)
@@ -411,7 +411,6 @@ namespace System.Net
             // OR parse out the file size or file time, usually a result of sending SIZE/MDTM commands
             else if (status == FtpStatusCode.FileStatus)
             {
-                FtpWebRequest request = (FtpWebRequest)_request;
                 if (entry.Command.StartsWith("SIZE ", StringComparison.Ordinal))
                 {
                     _contentLength = GetContentLengthFrom213Response(response.StatusDescription);