handle nil case for vprovs in getter
parent
669837845d
commit
2078809fe7
|
@ -226,6 +226,9 @@ func (b *auctionDB) GetVerifiedProviders(auctionId string) ([]string, error) {
|
|||
return err
|
||||
})
|
||||
if err != nil {
|
||||
if errors.Is(err, badger.ErrKeyNotFound) {
|
||||
return []string{}, nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
if providers == nil {
|
||||
|
|
Loading…
Reference in New Issue