remove unnecessary function
This commit is contained in:
parent
88ae4c1859
commit
110d84a916
2 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ proc connect*(ftp: AsyncFtpClient) {.async.} =
|
||||||
|
|
||||||
# Handle 220 messages from the server
|
# Handle 220 messages from the server
|
||||||
assertReply(reply, "220")
|
assertReply(reply, "220")
|
||||||
while reply.continuesWith("-", 3): # handle multiline 220 message
|
while reply[3] == "-": # handle multiline 220 message
|
||||||
assertReply(reply, "220")
|
assertReply(reply, "220")
|
||||||
reply = await ftp.expectReply()
|
reply = await ftp.expectReply()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ proc connect*[T](ftp: FtpBase[T]) =
|
||||||
|
|
||||||
# Handle 220 messages from the server
|
# Handle 220 messages from the server
|
||||||
assertReply ftp.expectReply(), "220"
|
assertReply ftp.expectReply(), "220"
|
||||||
while reply.continuesWith("-", 3): # handle multiline 220 message
|
while reply[3] == "-": # handle multiline 220 message
|
||||||
assertReply ftp.expectReply(), "220"
|
assertReply ftp.expectReply(), "220"
|
||||||
reply = ftp.expectReply()
|
reply = ftp.expectReply()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue