From 624837fdc18d13fdac17dcef19d7ea11d96bd9d7 Mon Sep 17 00:00:00 2001 From: David Howden Date: Sun, 28 Jun 2015 09:53:37 +1000 Subject: [PATCH] Remove unnecessary TrimSpace for tag name. --- id3v2.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/id3v2.go b/id3v2.go index c55ff50..c8c486f 100644 --- a/id3v2.go +++ b/id3v2.go @@ -8,7 +8,6 @@ import ( "fmt" "io" "strconv" - "strings" ) // ID3v2Header is a type which represents an ID3v2 tag header. @@ -200,11 +199,6 @@ func readID3v2Frames(r io.Reader, h *ID3v2Header) (map[string]interface{}, error return nil, err } - name = strings.TrimSpace(name) - if name == "" { - break - } - // There can be multiple tag with the same name. Append a number to the // name if there is more than one. rawName := name