From fc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 22 Jul 2009 07:50:50 -0700 Subject: Return empty string rather than true on success. --- libmpd.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libmpd.rb') diff --git a/libmpd.rb b/libmpd.rb index 202c1ab..1c1679d 100644 --- a/libmpd.rb +++ b/libmpd.rb @@ -34,14 +34,11 @@ class MPD while true line = @socket.gets - break if line == "OK\n" + return response if line == "OK\n" return false if line =~ /^ACK/ response << line end - - return true if response.empty? - return response end def generate_hash str -- cgit v1.2.3-70-g09d2