forked from TrueCloudLab/neoneo-go
storage: remove impossible error branch from MemoryStore
MemoryStore is always successful, so this branch makes no sense.
This commit is contained in:
parent
4a732d97ac
commit
8bf37f45fc
1 changed files with 1 additions and 3 deletions
|
@ -59,9 +59,7 @@ func (s *MemoryStore) Put(key, value []byte) error {
|
|||
func (s *MemoryStore) PutBatch(batch Batch) error {
|
||||
b := batch.(*MemoryBatch)
|
||||
for k, v := range b.m {
|
||||
if err := s.Put(*k, v); err != nil {
|
||||
return err
|
||||
}
|
||||
_ = s.Put(*k, v)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue