Skip to content

Commit

Permalink
fix: store implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
w-h-a committed Jul 8, 2024
1 parent d405fdd commit e83e3d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions store/cockroach/cockroach.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 0 additions & 4 deletions store/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e83e3d0

Please sign in to comment.