From 602cbf21d35ba898841cac0f3c458bd90b6b6841 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 6 Jul 2014 16:09:47 -0700 Subject: Style changes and simpler code. --- libmpd/status.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libmpd/status.rb') diff --git a/libmpd/status.rb b/libmpd/status.rb index 52c937c..d11c6ca 100644 --- a/libmpd/status.rb +++ b/libmpd/status.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # #-- -# Copyright 2009 David Vazgenovich Shakaryan +# Copyright 2009-2014 David Vazgenovich Shakaryan # Distributed under the terms of the GNU General Public License v3. # See http://www.gnu.org/licenses/gpl.txt for the full license text. #++ @@ -13,21 +13,21 @@ module MPDStatus # Clears the error message in the status, if one exists. def clearerror - return send_request('clearerror') + send_request('clearerror') end # Returns information about the current song. def current - return generate_hash(send_request('currentsong')) + generate_hash(send_request('currentsong')) end # Returns daemon and database statistics. def stats - return generate_hash(send_request('stats')) + generate_hash(send_request('stats')) end # Returns the status. def status - return generate_hash(send_request('status')) + generate_hash(send_request('status')) end end -- cgit v1.2.3-70-g09d2