Commit d114e6f17aa32df7f2201b52f4cbf37baabf84fa

Anton Maminov 2012-03-31T16:28:05

fix fetch_list method to correct output Array of results

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/mpd_client.rb b/lib/mpd_client.rb
index a179c5e..8650678 100644
--- a/lib/mpd_client.rb
+++ b/lib/mpd_client.rb
@@ -8,6 +8,7 @@ ERROR_PREFIX = "ACK "
 SUCCESS = "OK"
 NEXT = "list_OK"
 
+# MPD changelog: http://git.musicpd.org/cgit/master/mpd.git/plain/NEWS
 # http://mpd.wikia.com/wiki/MusicPlayerDaemonCommands
 COMMANDS = {
   # Status Commands
@@ -240,6 +241,8 @@ class MPDClient
       end
       result << value
     end
+
+    return result
   end
 
   def fetch_objects(delimeters = [])