[socks] Remove a superfluous clause
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 8 May 2016 07:14:56 +0000 (15:14 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Tue, 10 May 2016 06:51:38 +0000 (14:51 +0800)
youtube_dl/socks.py

index a5b27fea7c685208b1315110de90139d4bd6d075..fd49d74352c7d50e15956169f686c3ffbb107b5c 100644 (file)
@@ -210,8 +210,6 @@ class sockssocket(socket.socket):
             if status != SOCKS5_USER_AUTH_SUCCESS:
                 self.close()
                 raise Socks5Error(Socks5Error.ERR_GENERAL_FAILURE)
-        elif method == Socks5Auth.AUTH_NONE:
-            pass
 
     def _setup_socks5(self, address):
         destaddr, port = address