summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-22 07:50:50 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-22 07:50:50 -0700
commitfc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f (patch)
treea6d0d1789c231b3f60c59c41a847b7d7f6624305 /libmpd.rb
parent3b95b4df26fe21f203d2c1a6ae8dc3469fb08411 (diff)
downloadruby-libmpd-fc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f.tar.gz
ruby-libmpd-fc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f.tar.xz
Return empty string rather than true on success.
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb5
1 files changed, 1 insertions, 4 deletions
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