fix unchecked err
This commit is contained in:
parent
bbfa6406ea
commit
035b7c91fc
|
@ -182,8 +182,11 @@ func (i *IndexReader) InternalID(id string) (index.IndexInternalID, error) {
|
||||||
if tfr.Count() < 1 {
|
if tfr.Count() < 1 {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
tfd := index.TermFieldDoc{}
|
pre := index.TermFieldDoc{}
|
||||||
tfr.Next(&tfd)
|
tfd, err := tfr.Next(&pre)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return tfd.ID, nil
|
return tfd.ID, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user