Remove redundant 220 check

This commit is contained in:
Luca 2015-06-27 14:40:12 +02:00
commit 40a4a39374

View file

@ -270,7 +270,6 @@ proc connect*[T](ftp: FtpBase[T]) =
reply = ftp.expectReply() reply = ftp.expectReply()
# Handle 220 messages from the server # Handle 220 messages from the server
if reply.startsWith("220"):
assertReply ftp.expectReply(), "220" assertReply ftp.expectReply(), "220"
while reply.continuesWith("-", 3): # handle multiline 220 message while reply.continuesWith("-", 3): # handle multiline 220 message
assertReply ftp.expectReply(), "220" assertReply ftp.expectReply(), "220"