Remove unnecessary TrimSpace for tag name.

This commit is contained in:
David Howden 2015-06-28 09:53:37 +10:00
parent db723fecfc
commit 624837fdc1

View File

@ -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