diff --git a/store/cockroach/cockroach.go b/store/cockroach/cockroach.go index 0b871ac..9721727 100644 --- a/store/cockroach/cockroach.go +++ b/store/cockroach/cockroach.go @@ -109,9 +109,6 @@ func (s *cockroachStore) read(key string, options store.ReadOptions) ([]*store.R } if err != nil { - if err == sql.ErrNoRows { - return records, store.ErrRecordNotFound - } return nil, err } diff --git a/store/memory/memory.go b/store/memory/memory.go index 370f83c..fc141e1 100644 --- a/store/memory/memory.go +++ b/store/memory/memory.go @@ -70,10 +70,6 @@ func (s *memoryStore) Read(key string, opts ...store.ReadOption) ([]*store.Recor records := []*store.Record{} - if len(keys) == 0 { - return records, store.ErrRecordNotFound - } - for _, k := range keys { record, err := s.read(k) if err != nil {