mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
remove unnecessary function
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user