Add comment for fix UFID error

This commit is contained in:
Aleksey Sulzhenko 2021-09-19 12:23:38 +03:00 committed by RedleX
parent a081f19c30
commit 6539cf57ba

View File

@ -508,6 +508,7 @@ func (u UFID) String() string {
func readUFID(b []byte) *UFID {
result := bytes.SplitN(b, singleZero, 2)
if len(result) != 2 {
// Sometimes the UFID consists of one part, for example: track-5979322WOAF
return &UFID{
Identifier: result[0],
}