0
0
Fork 0

scorch docInternalToNumber returns 0 on error

This commit is contained in:
Steve Yen 2017-12-21 16:44:31 -08:00
parent b3e41335e1
commit a884f38bf6
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ func docInternalToNumber(in index.IndexInternalID) (uint64, error) {
var res uint64
err := binary.Read(bytes.NewReader(in), binary.BigEndian, &res)
if err != nil {
return res, err
return 0, err
}
return res, nil
}