Skip to content
Browse files

Use StringIO#string rather than seeking and reading

  • Loading branch information...
1 parent 553a65f commit ca8d3bf8d57b0ad895f5124875470157d6fc9840 @meh committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/mpd/protocol/command_list.rb
View
3 lib/mpd/protocol/command_list.rb
@@ -36,8 +36,7 @@ def to_s
}
result.print 'command_list_end'
- result.seek 0
- result.read
+ result.string
end
def to_a

0 comments on commit ca8d3bf

Please sign in to comment.
Something went wrong with that request. Please try again.