yoake/internal/db/error.go
2022-11-11 17:16:53 -05:00

14 lines
180 B
Go

package db
import (
"errors"
"github.com/dgraph-io/badger/v3"
)
func IsNotFound(err error) bool {
if errors.Is(err, badger.ErrKeyNotFound) {
return true
}
return false
}