Remove redundant 220 check

This commit is contained in:
Luca 2015-06-27 14:40:44 +02:00
commit 88ae4c1859

View file

@ -81,7 +81,6 @@ proc connect*(ftp: AsyncFtpClient) {.async.} =
reply = await ftp.expectReply() reply = await ftp.expectReply()
# Handle 220 messages from the server # Handle 220 messages from the server
if reply.startsWith("220"):
assertReply(reply, "220") assertReply(reply, "220")
while reply.continuesWith("-", 3): # handle multiline 220 message while reply.continuesWith("-", 3): # handle multiline 220 message
assertReply(reply, "220") assertReply(reply, "220")