mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 00:04:26 -08:00
handle nil case for vprovs in getter
This commit is contained in:
@@ -226,6 +226,9 @@ func (b *auctionDB) GetVerifiedProviders(auctionId string) ([]string, error) {
|
|||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if errors.Is(err, badger.ErrKeyNotFound) {
|
||||||
|
return []string{}, nil
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if providers == nil {
|
if providers == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user