From a2efbcd2312bf32d2969823988a738c462ee225f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 15 Oct 2010 23:36:37 -0700 Subject: Remove explicit return statements. --- omptagger | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'omptagger') diff --git a/omptagger b/omptagger index 68ccb9d..73f26d9 100755 --- a/omptagger +++ b/omptagger @@ -121,11 +121,11 @@ class FLAC < VorbisComment private def open(file) - return TagLib::FLAC::File.new(file) + TagLib::FLAC::File.new(file) end def read - return @file.xiphComment.fieldListMap.hash + @file.xiphComment.fieldListMap.hash end end @@ -133,11 +133,11 @@ class Vorbis < VorbisComment private def open(file) - return TagLib::Vorbis::File.new(file) + TagLib::Vorbis::File.new(file) end def read - return @file.tag.fieldListMap.hash + @file.tag.fieldListMap.hash end end @@ -145,14 +145,16 @@ class MP3 < Metadata private def open(file) - return TagLib::MPEG::File.new(file) + TagLib::MPEG::File.new(file) end def read metadata = @file.ID3v2Tag.frameListMap.hash - return metadata.each do |field, value| - metadata[field] = value.collect do |x| x.to_s end + metadata.each do |field, value| + metadata[field] = value.collect do |frame| + frame.to_s + end end end end -- cgit v1.2.3-70-g09d2