storage: remove impossible error branch from MemoryStore

MemoryStore is always successful, so this branch makes no sense.
This commit is contained in:
Roman Khimov 2019-09-26 20:21:09 +03:00
parent 4a732d97ac
commit 8bf37f45fc

View file

@ -59,9 +59,7 @@ func (s *MemoryStore) Put(key, value []byte) error {
func (s *MemoryStore) PutBatch(batch Batch) error { func (s *MemoryStore) PutBatch(batch Batch) error {
b := batch.(*MemoryBatch) b := batch.(*MemoryBatch)
for k, v := range b.m { for k, v := range b.m {
if err := s.Put(*k, v); err != nil { _ = s.Put(*k, v)
return err
}
} }
return nil return nil
} }