Skip to content

Commit 18f2331

Browse files
committed
pass in caller handling no records found
1 parent fc7c33e commit 18f2331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/indexd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func (cl *IndexDClient) GetObjectByHash(hashType string, hash string) (*drs.DRSO
566566
}
567567
// if no records found, return nil to handle in caller
568568
if len(records.Records) == 0 {
569-
return nil, fmt.Errorf("no records found for OID %s:%s", hashType, hash)
569+
return nil, nil
570570
}
571571
drsId := records.Records[0].Did
572572

0 commit comments

Comments
 (0)