diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-22 07:50:50 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-22 07:50:50 -0700 |
commit | fc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f (patch) | |
tree | a6d0d1789c231b3f60c59c41a847b7d7f6624305 | |
parent | 3b95b4df26fe21f203d2c1a6ae8dc3469fb08411 (diff) | |
download | ruby-libmpd-fc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f.tar.gz ruby-libmpd-fc0b6d95bc5cd07bfa8625cd2766757a9c65cb9f.tar.xz |
Return empty string rather than true on success.
-rw-r--r-- | libmpd.rb | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |