aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/library/net/ftp/fixtures/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/net/ftp/fixtures/server.rb')
-rw-r--r--spec/rubyspec/library/net/ftp/fixtures/server.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/rubyspec/library/net/ftp/fixtures/server.rb b/spec/rubyspec/library/net/ftp/fixtures/server.rb
index 2129835883..a6741820ff 100644
--- a/spec/rubyspec/library/net/ftp/fixtures/server.rb
+++ b/spec/rubyspec/library/net/ftp/fixtures/server.rb
@@ -35,10 +35,7 @@ module NetFTPSpecs
response @connect_message || "220 Dummy FTP Server ready!"
begin
- loop do
- command = @socket.recv(1024)
- break if command.nil?
-
+ while command = @socket.recv(1024)
command, argument = command.chomp.split(" ", 2)
if command == "QUIT"