mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 23:41:29 +00:00
Remove redundant 220 check
This commit is contained in:
@@ -81,11 +81,10 @@ proc connect*(ftp: AsyncFtpClient) {.async.} =
|
||||
reply = await ftp.expectReply()
|
||||
|
||||
# Handle 220 messages from the server
|
||||
if reply.startsWith("220"):
|
||||
assertReply(reply, "220")
|
||||
while reply.continuesWith("-", 3): # handle multiline 220 message
|
||||
assertReply(reply, "220")
|
||||
while reply.continuesWith("-", 3): # handle multiline 220 message
|
||||
assertReply(reply, "220")
|
||||
reply = await ftp.expectReply()
|
||||
reply = await ftp.expectReply()
|
||||
|
||||
if ftp.user != "":
|
||||
assertReply(await(ftp.send("USER " & ftp.user)), "230", "331")
|
||||
|
||||
Reference in New Issue
Block a user