remove unnecessary function

This commit is contained in:
Luca
2015-06-27 17:06:11 +02:00
parent 88ae4c1859
commit 110d84a916
2 changed files with 2 additions and 2 deletions

View File

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

View File

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