diff options
author | Luca <acidvertigo@users.noreply.github.com> | 2015-06-27 17:06:11 +0200 |
---|---|---|
committer | Luca <acidvertigo@users.noreply.github.com> | 2015-06-27 17:06:11 +0200 |
commit | 110d84a9167ad077bb8ca983c43c8febc5780cc6 (patch) | |
tree | 33333436536d1cff5f2f148a828623ea04b81bdc | |
parent | 88ae4c18593c61ed1c67d074cee373226c41ab32 (diff) | |
download | Nim-110d84a9167ad077bb8ca983c43c8febc5780cc6.tar.gz |
remove unnecessary function
-rw-r--r-- | lib/pure/asyncftpclient.nim | 2 | ||||
-rw-r--r-- | lib/pure/ftpclient.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/asyncftpclient.nim b/lib/pure/asyncftpclient.nim index 979b0d649..ff98d94c1 100644 --- a/lib/pure/asyncftpclient.nim +++ b/lib/pure/asyncftpclient.nim @@ -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() diff --git a/lib/pure/ftpclient.nim b/lib/pure/ftpclient.nim index 301ca227a..2644fc010 100644 --- a/lib/pure/ftpclient.nim +++ b/lib/pure/ftpclient.nim @@ -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() |