summaryrefslogtreecommitdiff
path: root/omptagger
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-15 23:36:37 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-15 23:36:37 -0700
commita2efbcd2312bf32d2969823988a738c462ee225f (patch)
tree919a28a32585a2039a2c869a3d3ba7c8684eccb0 /omptagger
parent47a9063391ca7207484f31025ecd4969dc0a740a (diff)
downloadomptagger-a2efbcd2312bf32d2969823988a738c462ee225f.tar.gz
omptagger-a2efbcd2312bf32d2969823988a738c462ee225f.tar.xz
Remove explicit return statements.
Diffstat (limited to 'omptagger')
-rwxr-xr-xomptagger16
1 files changed, 9 insertions, 7 deletions
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