Remove unnecessary TrimSpace for tag name.
This commit is contained in:
parent
db723fecfc
commit
624837fdc1
6
id3v2.go
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user