From 110d84a9167ad077bb8ca983c43c8febc5780cc6 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 27 Jun 2015 17:06:11 +0200 Subject: remove unnecessary function --- lib/pure/asyncftpclient.nim | 2 +- lib/pure/ftpclient.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/pure') 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() -- cgit 1.4.1-2-gfad0