diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-15 23:36:37 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-15 23:36:37 -0700 |
commit | a2efbcd2312bf32d2969823988a738c462ee225f (patch) | |
tree | 919a28a32585a2039a2c869a3d3ba7c8684eccb0 /omptagger | |
parent | 47a9063391ca7207484f31025ecd4969dc0a740a (diff) | |
download | omptagger-a2efbcd2312bf32d2969823988a738c462ee225f.tar.gz omptagger-a2efbcd2312bf32d2969823988a738c462ee225f.tar.xz |
Remove explicit return statements.
Diffstat (limited to 'omptagger')
-rwxr-xr-x | omptagger | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 |